------
Java培训、Android培训、iOS培训、.Net培训、期待与您交流! -------
SQLITE_API
int
sqlite3_open_v2(
const char *filename, /* Database filename (UTF-8) */文件路径名称
sqlite3 **ppDb, /* OUT: SQLite db handle */
int flags, /* Flags */ SQLITE_OPEN_READONLY等,如果没有包含 SQLITE_OPEN_CREATE,当文件不存在时将返回错误
const char *zVfs /* Name of VFS module to use */未知用法
);
const char *filename, /* Database filename (UTF-8) */文件路径名称
sqlite3 **ppDb, /* OUT: SQLite db handle */
int flags, /* Flags */ SQLITE_OPEN_READONLY等,如果没有包含 SQLITE_OPEN_CREATE,当文件不存在时将返回错误
const char *zVfs /* Name of VFS module to use */未知用法
);
------------------------
sqlite3_stmt
*compiledStatement;
SQLITE_API
int
sqlite3_prepare_v2(
sqlite3 *db, /* Database handle */
const char *zSql, /* SQL statement, UTF-8 encoded */ 需要执行的语句
int nByte, /* Maximum length of zSql in bytes. */ 返回的长度,-1为自动
sqlite3_stmt **ppStmt, /* OUT: Statement handle */
const char **pzTail /* OUT: Pointer to unused portion of zSql */未知用法
);
sqlite3 *db, /* Database handle */
const char *zSql, /* SQL statement, UTF-8 encoded */ 需要执行的语句
int nByte, /* Maximum length of zSql in bytes. */ 返回的长度,-1为自动
sqlite3_stmt **ppStmt, /* OUT: Statement handle */
const char **pzTail /* OUT: Pointer to unused portion of zSql */未知用法
);
SQLITE_API
int
sqlite3_step(
sqlite3_stmt
*);
SQLITE_API
int
sqlite3_column_count(
sqlite3_stmt
*pStmt);//返回与语句句柄关联的字段数,每行有多个内容
SQLITE_API
int
sqlite3_column_type(
sqlite3_stmt
*,
int
iCol);返回行每个内容的类型
SQLITE_API
const
char
*sqlite3_column_decltype(
sqlite3_stmt
*,
int
);
返回行每个内容的设置参数类型
SQLITE_API
int
sqlite3_finalize(
sqlite3_stmt
*pStmt);//释放语句空间