SQLite 获取主键列名

pragma table_info ('tablename')

 

判断 pk 列是否为1,name即为列名

posted @ 2015-10-31 11:24  逍遥子k  阅读(1753)  评论(0编辑  收藏  举报