Tabela CM3

TESTEMUNHAS
14camposNome físicoCM3010(empresa 01)

Campos da tabela CM3

14 campos no dicionário de dados do TOTVS Protheus.

14
CampoDescrição
CM3_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
CM3_ID
Caractere (C)(6)
ID
Máscara:
@!
Contexto:
Real
CM3_VERSAO
Caractere (C)(14)
Id. Ver. Reg
Máscara:
@!
Contexto:
Real
CM3_ITEM
Caractere (C)(6)
Cod. Item
Máscara:
@!
Contexto:
Real
CM3_NOMTES
Caractere (C)(80)
Nom. Teste.
Máscara:
@!
Contexto:
Real
CM3_DESLOG
Caractere (C)(80)
Des. Log
Máscara:
@!
Contexto:
Real
CM3_NRLOG
Caractere (C)(10)
Numero. Log
Máscara:
@!
Contexto:
Real
CM3_BAIRRO
Caractere (C)(80)
Bairro
Máscara:
@!
Contexto:
Real
CM3_UF
Caractere (C)(6)
UF
Máscara:
@!
Contexto:
Real
Consulta F3:
C09
Validação:
XFUNVldCmp("C09",3)
CM3_DUF
Caractere (C)(220)
Des. UF
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM3_CODMUN
Caractere (C)(6)
Cod. Mun.
Máscara:
@!
Contexto:
Real
Consulta F3:
C07
Validação:
XFUNVldCmp("C07",3)
CM3_DCODMU
Caractere (C)(220)
Des. Mun
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM3_CEP
Caractere (C)(9)
CEP
Contexto:
Real
CM3_FONE
Caractere (C)(20)
Telefone
Contexto:
Real

SELECT de exemplo da tabela CM3

No Protheus a tabela física leva o código da empresa (01 → 010) e registros excluídos ficam com D_E_L_E_T_ = '*'.

SQL · SQL Server
SELECT TOP 100
  CM3.CM3_FILIAL,
  CM3.CM3_ID,
  CM3.CM3_VERSAO,
  CM3.CM3_ITEM,
  CM3.CM3_NOMTES,
  CM3.CM3_DESLOG,
  CM3.CM3_NRLOG,
  CM3.CM3_BAIRRO
FROM CM3010 CM3
WHERE CM3.D_E_L_E_T_ = ' '

Tabelas próximas no índice do Protheus

O ERPSeeker é um projeto independente, sem vínculo com a TOTVS. A estrutura pode variar conforme a versão e as customizações do seu ambiente.