Tabela RH0

Itens de Segmentos
8camposNome físicoRH0010(empresa 01)

Campos da tabela RH0

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

CampoDescrição
RH0_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
RH0_CODIGO
Caractere (C)(2)
Codigo
Máscara:
@9
Contexto:
Real
RH0_SEGMEN
Caractere (C)(2)
Segmento
Máscara:
@9
Contexto:
Real
RH0_DIGITO
Caractere (C)(2)
Qt. Digitos
Máscara:
@9
Contexto:
Real
RH0_DESC
Caractere (C)(30)
Descricao
Contexto:
Real
RH0_SEPARA
Caractere (C)(1)
Separador
Máscara:
@!
Contexto:
Real
RH0_VALID
Caractere (C)(60)
Validacao
Contexto:
Real
RH0_CONPAD
Caractere (C)(6)
Cons. Padrao
Máscara:
@!
Contexto:
Real

SELECT de exemplo da tabela RH0

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
  RH0.RH0_FILIAL,
  RH0.RH0_CODIGO,
  RH0.RH0_SEGMEN,
  RH0.RH0_DIGITO,
  RH0.RH0_DESC,
  RH0.RH0_SEPARA,
  RH0.RH0_VALID,
  RH0.RH0_CONPAD
FROM RH0010 RH0
WHERE RH0.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.