Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在调用 DbConnection.GetSchema("Tables") 并且它不返回名为“table_comment”的列。
Sqlite 的元数据中没有描述吗?
或者如果它有它,我该如何查询它?
谢谢 - 戴夫
我不完全确定这是您要问的,但DbConnection.GetSchema("MetaDataCollections")会帮助您找到该GetSchema()方法可以采用的所有参数。这些方法包括视图和列。该"Tables"参数仅返回表的列表。如果通过描述您指的是类似于 MySQL 的东西DESCRIBE,您可以查询sqlite_master以查看create语句。这是我所知道的最接近评论的方式(尽管肯定有我不知道的方式)。
DbConnection.GetSchema("MetaDataCollections")
GetSchema()
"Tables"
DESCRIBE
sqlite_master
create