Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Análise - árvore
Message
From
15/01/2003 13:05:39
 
 
To
15/01/2003 11:52:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00741965
Message ID:
00742018
Views:
23
Obrigado Alex

Já ajudou muito
Aproveito para dizer que o site correcto é http://fox.wikis.com

Mas pergunto ainda e voltando ao meu exemplo

Imaginem tenho a ficha do João
>O João é filho do António e da Maria
>O António é flho do Gonçalves e da Ernestina
>O Gonçalves é filho do Gaspar e da Fátima
>

Ex:

Pai.dbf
-------
pai_pk c(5) (ou Integer)
pai_nome
pai_fone
etc

filho.dbf
------
fil_pk
fil_paifk (contem o numero do PK do pai)
fil_fone
etc.

Começo por introduzir na tabela Pai o Gaspar e a Fátima . O campo pai_pk seria pk001
Depois introduzo na tabela filho o Gonçalves . O campo fil_paifk seria pk001 .

Mas a minha dúvida é : o Gonçalves têm filhos ( o António ) . Por isso tenho que introduzir o Gonçalves na tabela pai ?
Existe uma alternativa melhor ?
É obrigatório o Gonçalves estar na tabela pai e na tabela filho ?

Um abraço

Muito obrigado


Pedro Silva

world is wonderful with your help .

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform