Tabela N02

Logradouros
30camposNome físicoN02010(empresa 01)

Campos da tabela N02

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

30
CampoDescrição
N02_FILIAL
Caractere (C)(2)
Filial
N02_COD
Caractere (C)(6)
Codigo
Máscara:
@!
Contexto:
Real
Validação:
Existchav("N02",M->N02_COD,1)
N02_DESCRI
Caractere (C)(40)
Descricao
Máscara:
@!
Contexto:
Real
N02_DISTRI
Caractere (C)(2)
Distrito
Máscara:
@!
Contexto:
Real
Consulta F3:
N1
Validação:
Existcpo("SX5","N1"+M->N02_DISTRI)
N02_COMP1
Caractere (C)(30)
Desc. Distr.
Máscara:
@!
Contexto:
Real
N02_BAI
Caractere (C)(2)
Bairro
Máscara:
@!
Contexto:
Real
Consulta F3:
NB
Validação:
Existcpo("SX5","NB"+M->N02_BAI)
N02_COMP2
Caractere (C)(30)
Desc. Bairro
Máscara:
@!
Contexto:
Real
N02_SETOR
Caractere (C)(2)
Setor
Máscara:
@!
Contexto:
Real
Consulta F3:
N2
Validação:
Existcpo("SX5","N2"+M->N02_SETOR)
N02_COMP3
Caractere (C)(30)
Desc. Setor
Máscara:
@!
Contexto:
Real
N02_QUADRA
Caractere (C)(2)
Quadra
Máscara:
@!
Contexto:
Real
Consulta F3:
N3
Validação:
Existcpo("SX5","N3"+M->N02_QUADRA)
N02_CLI
Caractere (C)(1)
Coleta Lixo
Máscara:
@!
2 valores possíveis
  • SSim
  • NNao
N02_COMP4
Caractere (C)(30)
Desc. Quadra
Máscara:
@!
Contexto:
Real
N02_SFI
Caractere (C)(2)
Setor Fiscal
Máscara:
@!
Contexto:
Real
Consulta F3:
N6
Validação:
Existcpo("SX5","N6"+M->N02_SFI)
N02_COMP5
Caractere (C)(30)
Desc. S.Fisc
Máscara:
@!
Contexto:
Real
N02_VLRCON
Numérico (N)(11,2)
Vlr m¦ Const
Máscara:
9999999.99
Contexto:
Real
N02_VLRTER
Numérico (N)(11,2)
Vlr m¦ Ter
Máscara:
9999999.99
Contexto:
Real
N02_CEP
Caractere (C)(9)
Cep
Máscara:
99999-999
Contexto:
Real
N02_AGU
Caractere (C)(1)
Agua
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • SSim
  • NNao
N02_EGC
Caractere (C)(1)
Esg. Cloacal
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • SSim
  • NNao
N02_EGF
Caractere (C)(1)
Esg. Fluvial
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • SSim
  • NNao
N02_ENE
Caractere (C)(1)
Energia Elet
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • SSim
  • NNao
N02_ILU
Caractere (C)(1)
Iluminacao
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • SSim
  • NNao
N02_LIU
Caractere (C)(1)
Limp. Urbana
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • SSim
  • NNao
N02_MFI
Caractere (C)(1)
Meio Fio
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • SSim
  • NNao
N02_PAV
Caractere (C)(1)
Pavimentacao
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • SSim
  • NNao
N02_LOCX
Caractere (C)(9)
Carteziano X
Máscara:
@!
Contexto:
Real
N02_LOCY
Caractere (C)(9)
Carteziano Y
Máscara:
@!
Contexto:
Real
N02_LOCZ
Caractere (C)(9)
Carteziano Z
Máscara:
@!
Contexto:
Real
N02_NUMINI
Caractere (C)(7)
Num Inicial
Contexto:
Real
N02_NUMFIM
Caractere (C)(7)
Num.Final
Contexto:
Real
Validação:
M->N02_NUMFIM >= M->N02_NUMINI

SELECT de exemplo da tabela N02

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
  N02.N02_FILIAL,
  N02.N02_COD,
  N02.N02_DESCRI,
  N02.N02_DISTRI,
  N02.N02_COMP1,
  N02.N02_BAI,
  N02.N02_COMP2,
  N02.N02_SETOR
FROM N02010 N02
WHERE N02.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.