Tabela COJ

SC X GRUPO DE APROVACAO
6camposNome físicoCOJ010(empresa 01)

Campos da tabela COJ

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

CampoDescrição
COJ_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
COJ_CODIGO
Caractere (C)(6)
Codigo
Máscara:
@!
Contexto:
Real
COJ_CUSTO
Caractere (C)(9)
C Custo
Máscara:
@!
Contexto:
Real
Consulta F3:
CTT
COJ_PREFIX
Caractere (C)(4)
Prefixo
Máscara:
@!
Contexto:
Real
COJ_COD
Caractere (C)(6)
Grupo
Máscara:
@!
Contexto:
Real
Consulta F3:
SAL
COJ_DESC
Caractere (C)(20)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)

SELECT de exemplo da tabela COJ

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
  COJ.COJ_FILIAL,
  COJ.COJ_CODIGO,
  COJ.COJ_CUSTO,
  COJ.COJ_PREFIX,
  COJ.COJ_COD
FROM COJ010 COJ
WHERE COJ.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.