http://stackoverflow.com/questions/1274432/sqlite-parameters-not-allowing-tablename-as-parameter

Generally one cannot use SQL parameters/placeholders for database identifiers (tables, columns, views, schemas, etc.) or database functions (e.g., CURRENT_DATE), but instead only for binding literal values.

placeholder 占位符

identifiers 标识符,认同者;检验人,鉴定人

literal 文字的;逐字的;无夸张的

With server-side support for parameterized (a.k.a. prepared) statements, the DB engine parses your query once, remembering out the peculiars of any parameters -- their types, max lengths, precisions, etc. -- that you will bind in subsequent executions of the already-parsed query. But the query cannot be properly parsed into its syntactic elements if critical bits, like database objects, are unknown.

peculiar 特权;特有财产

precisions 精度,[数] 精密度;精确

subsequent  后来的,随后的

syntactic  句法的;语法的;依据造句法的

critical  鉴定的;[核] 临界的;批评的,爱挑剔的;危险的;决定性的;评论的

So, one generally has to substitute table names oneself, in a stored procedure or in client code which dynamically concats/interpolates/whatevers the SQL statement to be properly executed. In any case, please remember to use your SQL API's function for quoting database identifiers, since the API won't do it for you.

substitute  代用品;代替者

stored procedur 存储过程

concat 合并多个数组;合并多个字符串

interpolate   vt. 篡改;插入新语句    vi. 插入;篡改

quote    n. 引用   vi. 报价;引用;引证   vt. 报价;引述;举证

最新文章

  1. IBM Domino 9 出现 Server Controller 未在主机上运行或未在端口2050监听 解决方案
  2. selenium-pageobject设计模式
  3. 第三方支付过程中session失效问题
  4. Linux some command(continue...)
  5. MON166 FAQ
  6. sqlserver 2008 R2 分区表测试
  7. 一个简单的DELPHI程序注册码设计 .
  8. linux内核分析系列--百度
  9. css新属性box-sizing应用
  10. Java面试题之五
  11. 输入参数能动态调决定调用哪个实现类 spring的一个特性
  12. Android自定义ListView的Item无法响应OnItemClick的解决办法(转)
  13. 利刃 MVVMLight 5:绑定在表单验证上的应用
  14. stderr和stdout详细解说
  15. 在线预览-Java 使用 Print2Flash 实现Office文档在线阅读
  16. Linux记录
  17. JS中innerHTML、outerHTML、innerText 、outerText、value的区别与联系?jQuery中的text()、html()和val()
  18. 中控考勤机SDK使用中员工姓名的处理( c# )
  19. thinkphp 外部js语言包
  20. 委托学习过程及委托、Lambda表达式和匿名方法的关系总结及事件总结

热门文章

  1. ruby condition
  2. 怎么让LinearLayout充满ScrollView
  3. java集合类(二)List学习
  4. HTML弹出窗口
  5. win7安装mysql
  6. Ext学习-基础概念,核心思想介绍
  7. 在线最优化求解(Online Optimization)之四:RDA
  8. 【技术贴】解决bug mantisbt APPLICATION ERROR #1502 没有找到类别
  9. iOS7 兼容及部分细节
  10. sp_MSforeachtable使用方法 查看库中所有表的空间大小