SQLITE源码剖析(15)

阅读更多

 声明:本SQLite源码剖析系列为刘兴(http://deepfuture.iteye.com/)原创,未经笔者授权,任何人和机构不能转载

** Restrictions:

**

**

    必须保证sqlite3_exec()的第1个参数是有效且打开的database connection

    **

  • The application must insure that the 1st parameter to sqlite3_exec()

    **      is a valid and open [database connection].

    **

  • The application must not close [database connection] specified by

    **      the 1st parameter to sqlite3_exec() while sqlite3_exec() is running.

    **当sqlite3_exec()运行时,应用程序不能关闭被sqlite3_exec()第一个

    **参数定义的database connection,也不能修改第2个参数定义的SQL文本

    database connection**

  • The application must not modify the SQL statement text passed into

    **      the 2nd parameter of sqlite3_exec() while sqlite3_exec() is running.

    **

*/

SQLITE_API int sqlite3_exec(

  sqlite3*,                                  /* An open database */

  const char *sql,                           /* SQL to be evaluated */

  int (*callback)(void*,int,char**,char**),  /* Callback function */

  void *,                                    /* 1st argument to callback */

  char **errmsg                              /* Error msg written here */

);

你可能感兴趣的:(SQLite,SQL)