开发者

What is the query to check if an attribute in a table existed or not?

开发者 https://www.devze.com 2023-01-11 02:02 出处:网络
The question is in the title is clear, I guess. What/how is the query to check if an attribute in a table existed or n开发者_Go百科ot?

The question is in the title is clear, I guess.

What/how is the query to check if an attribute in a table existed or n开发者_Go百科ot?

I am doing with SQLite.

Thanks in advance.


You can interrogate the database with PRAGMA table_info(tablename);. That will return the list of column names, their type, nullable or not, and default value.

0

精彩评论

暂无评论...
验证码 换一张
取 消