Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I know the depth a particular record is at (hiera
Message
De
12/01/2008 08:39:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
Firebird
Divers
Thread ID:
01281252
Message ID:
01281325
Vues:
7
>Hi Hilmar
>
>>I think you will just have to create a UDF that goes all the way to the root and counts the levels.
>>
>>You might also consider saving the level as part of the data, to avoid those searches.
>
>Thanks for your suggestions. I was hoping there was a SQL statement that would yield the level no.

I don't think so. Of course, once you have the appropriate UDF, you can call it from a SELECT statement.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform