Chinaunix首页 | 论坛 | 博客
  • 博客访问: 178440
  • 博文数量: 96
  • 博客积分: 4060
  • 博客等级: 上校
  • 技术积分: 1040
  • 用 户 组: 普通用户
  • 注册时间: 2009-02-12 13:13
文章分类

全部博文(96)

文章存档

2011年(3)

2010年(76)

2009年(17)

我的朋友

分类: 数据库开发技术

2009-12-29 09:29:59

sqlite_prepare () to set the ppStmt

"The sqlite3_bind_*() routines must be called after (and its variants) or and before . "
sqlite3_bind*  set the value of param 
sqlite_step()  to
"After a has been prepared using either or or one of the legacy interfaces or , this function must be called one or more times to evaluate the statement."

The sqlite3_reset() function is called to reset a object back to its initial state, ready to be re-executed. Any SQL statement variables that had values bound to them using the retain their values. Use to reset the bindings.

The interface resets the S back to the beginning of its program.

int sqlite3_finalize(sqlite3_stmt *pStmt);


The life of a statement object goes something like this:

  1. Create the object using or a related function.
  2. Bind values to using the sqlite3_bind_*() interfaces.
  3. Run the SQL by calling one or more times.
  4. Reset the statement using then go back to step 2. Do this zero or more times.
  5. Destroy the object using .

阅读(468) | 评论(0) | 转发(0) |
0

上一篇:remove sqlite puzzle

下一篇:vim 跳转

给主人留下些什么吧!~~