How to get a list of column names on Sqlite3 database?

后端 未结 18 1398
半阙折子戏
半阙折子戏 2020-11-27 08:48

I want to migrate my iPhone app to a new database version. Since I don\'t have some version saved, I need to check if certain column names exist.

This Stackoverflow

18条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-27 09:21

    function getDetails(){
    var data = [];
    dBase.executeSql("PRAGMA table_info('table_name') ", [], function(rsp){
        if(rsp.rows.length > 0){
            for(var i=0; i

提交回复
热议问题