Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Análise - árvore
Message
From
15/01/2003 13:32:55
 
 
To
15/01/2003 13:27:53
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00741965
Message ID:
00742035
Views:
30
This message has been marked as a message which has helped to the initial question of the thread.
>Obrigado Erick
>
>O exemplo que destes , seria perfeito se cada membro tivesse apenas um filho .
>No entanto , cada membro poderá ter muitos filhos .
>Naturalmente uma solução , seria em vez de colocar o campo filho , colocar os campos filho_1 , filho_2 , filho_3 , ...
>
>Mas , estou certo que haverá uma melhor solução . Podem ajudar-me a encrontá-la ?
>
>Muito obrigado


No primeiro exemplo que eu di, é 1..N ou seja que não tem limite no número de filhos.

Pai
-----
Pk:001 Nome:XX
Pk:002 Nome:YY

Filho
-----
PK:001 PaiFK:001 Nome:XA
PK:002 PaiFK:002 Nome:YA
PK:003 PaiFK:002 Nome:YB
PK:004 PaiFK:002 Nome:YC
PK:005 PaiFK:001 Nome:AB

O PaiFK apunta ão registro do pai em Pai.dbf

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform