Tabela CQL

IDENT.DOS TIPOS DE PROGRAMAS
20camposNome físicoCQL010(empresa 01)

Campos da tabela CQL

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

20
CampoDescrição
CQL_FILIAL
Caractere (C)(2)
Filial
CQL_CODID
Caractere (C)(6)
Codigo Ident
Máscara:
@!
Contexto:
Real
Validação:
NaoVazio()
CQL_REG
Caractere (C)(4)
Registro
Máscara:
@!
Contexto:
Real
Validação:
NaoVazio()
CQL_DESCRI
Caractere (C)(30)
Descricao
Máscara:
@!
Contexto:
Real
Validação:
NaoVazio()
CQL_REPES
Caractere (C)(1)
Repes
Máscara:
9
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
CQL_RECAP
Caractere (C)(1)
Recap
Máscara:
9
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
CQL_PADIS
Caractere (C)(1)
Padis
Máscara:
9
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
CQL_PADTVD
Caractere (C)(1)
PATVD
Máscara:
9
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
CQL_REIDI
Caractere (C)(1)
Reidi
Máscara:
9
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
CQL_REPENE
Caractere (C)(1)
Repenec
Máscara:
9
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
CQL_REICOM
Caractere (C)(1)
Reicomp
Máscara:
9
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
CQL_RETAER
Caractere (C)(1)
Retaero
Máscara:
9
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
CQL_RECINE
Caractere (C)(1)
Recine
Máscara:
9
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
CQL_RESIDU
Caractere (C)(1)
Residuos Sol
Máscara:
9
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
CQL_RECOPA
Caractere (C)(1)
Recopa
Máscara:
9
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
CQL_COPMUN
Caractere (C)(1)
Copa Mundo
Máscara:
9
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
CQL_RETID
Caractere (C)(1)
Retid
Máscara:
9
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
CQL_REPNBL
Caractere (C)(1)
REPNBL
Máscara:
9
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
CQL_REIF
Caractere (C)(1)
REIF
Máscara:
9
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
CQL_OLIMPI
Caractere (C)(1)
Olimpiadas
Máscara:
9
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao

SELECT de exemplo da tabela CQL

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
  CQL.CQL_FILIAL,
  CQL.CQL_CODID,
  CQL.CQL_REG,
  CQL.CQL_DESCRI,
  CQL.CQL_REPES,
  CQL.CQL_RECAP,
  CQL.CQL_PADIS,
  CQL.CQL_PADTVD
FROM CQL010 CQL
WHERE CQL.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.