SQLite3 error - iOS

前端 未结 2 1986
难免孤独
难免孤独 2021-01-20 14:22

How can I figure out the error that SQLite3 is giving me when I make an SQL call:

int success = sqlite3_prepare_v2(database, sql, -1, &stmt, NULL);

if(s         


        
2条回答
  •  甜味超标
    2021-01-20 15:00

    Sure, if success != SQLITE_OK, then it must be one of these error codes:

    http://www.sqlite.org/c3ref/c_abort.html

提交回复
热议问题