關於SQLite的API操作

sqlite3_open(); //參數有filename, address of database.
                         //作用是open一個資料庫.
sqlite3_prepare(); //參數有database, SQL as UTF-8, max length to read, address of statement, address of unread results.
                             //轉換UTF-8的SQL statement檢查statement是否ready?
sqlite3_step(); //參數prepared statement.
                        //處理row所產生的statement.
sqlite3_column_int(); //參數prepared statement, column number.
                                  //取出每一行的值, return type是int型態.
sqlite3_column_string(); //參數參數prepared statement, column number.
                                       //取出每一行的值, return type是string型態.
sqlite3_finalize(); //參數prepared statement.
                            //刪除prepared statement.
sqlite3_close(); //參數database.
                         //關掉資料庫.

arrow
arrow
    全站熱搜

    adalin05 發表在 痞客邦 留言(0) 人氣()