Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find tables that have a column with a certain name?
Message
De
06/05/2010 15:58:42
 
 
À
06/05/2010 14:53:22
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 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01463436
Message ID:
01463477
Vues:
42
>>I have a directly full of dbf tables (not attached to a dbc). Is there a way I can programmatically determine which tables have a column named "ifkey"?
>>
>>If not possible on a directory of free tables, would it be possible if they were attached to a DBC? How would you query this matter if they were atatched to a dbc?
>
>If all the tables are in a DBC........
>SELECT cur1.objectname AS tablename ;
>  FROM myDbc.dbc cur1;
>     JOIN myDbc.dbc cur2 ON cur1.objectid = cur2.parentid;
> WHERE cur2.objecttype = "Field" AND cur2.objectname = myFieldName
>
>If they're not in a DBC then try Naomi's loop

Very nice. Exactly what I needed.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform