FireDAC 之FDMetaInfoQuery
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); ?? 怎么赋值参数
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。