Tabela AYR

Medidas
7camposNome físicoAYR010(empresa 01)

Campos da tabela AYR

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

CampoDescrição
AYR_FILIAL
Caractere (C)(2)
Filial
AYR_CODPRO
Caractere (C)(15)
Produto
Máscara:
@!
Contexto:
Real
AYR_CODIGO
Caractere (C)(3)
Codigo
Máscara:
@!
Contexto:
Real
AYR_DESC
Caractere (C)(30)
Descricao
Máscara:
@!
Contexto:
Real
AYR_CHVCLP
Caractere (C)(8)
Chave CL Pai
Máscara:
@!
Contexto:
Real
AYR_CHVCLV
Caractere (C)(10)
Chave CL Vlr
Contexto:
Real
AYR_OBS
Caractere (C)(100)
Observacao
Máscara:
@S50
Contexto:
Real

SELECT de exemplo da tabela AYR

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
  AYR.AYR_FILIAL,
  AYR.AYR_CODPRO,
  AYR.AYR_CODIGO,
  AYR.AYR_DESC,
  AYR.AYR_CHVCLP,
  AYR.AYR_CHVCLV,
  AYR.AYR_OBS
FROM AYR010 AYR
WHERE AYR.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.