Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine tables that have a certain field?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01314228
Message ID:
01314231
Vues:
8
This message has been marked as the solution to the initial question of the thread.
>Is there a command/function that will tell me what tables in a database have a certain field (e.g. "MYFLD")?

Open DBC as a table and run following query
SELECT LEFT(db1.ObjectName,50) AS TableName, LEFT(db2.ObjectName,50) AS FieldName ;
	FROM mydbc db1 JOIN mydbc db2 ON db1.ObjectId = db2.ParentId ;
	WHERE db1.ObjectType = "Table" ;
		AND db2.ObjectType = "Field" AND db2.ObjectName = lcFieldName
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform