FDMetaInfoQuery
MetaInfoKind属性有17种类型,获取数据库名称、表、字段、主键等信息。强大强大,不用写sql语句
mkNone
mkCatalogs
mkSchemas
mkTables
mkTableFields
mkIndexes
mkIndexFields
mkPrimaryKey
mkPrimaryKeyFields
mkForeignKeys
mkForeignKeyFields
mkPackages
mkProcs
mkProcArgs
mkGenerators
mkResultSetFields
mkTableTypeFields
FDMetaInfoQuery1->MetaInfoKind = mkTables;
FDMetaInfoQuery1->Open();
FDMetaInfoQuery1->MetaInfoKind = mkTableFields;
FDMetaInfoQuery1->Open(edtTableName->Text);
FDMetaInfoQuery1->MetaInfoKind = mkPrimaryKey;
FDMetaInfoQuery1->Open(edtTableName->Text);
FDMetaInfoQuery1->MetaInfoKind = mkPrimaryKeyFields;
FDMetaInfoQuery1->Open(edtTableName->Text,PKName); ?? 怎么赋值参数
时间: 2024-10-09 14:34:51