The PREPARE statement creates an executable SQL statement from a string form of the statement. The character-string form is called a statement string. The executable form is called a prepared statement.

Invocation

This statement can only be embedded in an application program. It is an executable statement that cannot be dynamically prepared. It must not be specified in Java.

Authorization

The authorization rules are those defined for the dynamic preparation of the SQL statement specified by the PREPARE statement. For example, see Queries for the authorization rules that apply when a SELECT statement is prepared.

The statement that is prepared using only the EXPLAIN privilege cannot be executed, and only the descriptive information can be obtained for that statement.

Syntax

Read syntax diagram
>>-PREPARE--statement-name--------------------------------------> >--+----------------------------------------------+------------->
'-INTO--descriptor-name--+-------------------+-'
| .-NAMES--. |
'-USING--+-LABELS-+-'
+-ANY----+
'-BOTH---' >--+-+------------------------------------+--FROM--host-variable-+-><
| | (1) | |
| '-ATTRIBUTES--attr-host-variable-----' |
| (2) |
'-FROM--string-expression-------------------------------------'

https://www.ibm.com/support/knowledgecenter/SSEPEK_10.0.0/sqlref/src/tpc/db2z_sql_prepare.html

最新文章

  1. 【Linux】重定向与管道
  2. mysql锁SELECT FOR UPDATE【转】
  3. 关于iOS开发证书的一些总结(很有用)
  4. KVM 介绍(8):使用 libvirt 迁移 QEMU/KVM 虚机和 Nova 虚机 [Nova Libvirt QEMU/KVM Live Migration]
  5. Linux System Account SSH Weak Password Detection Automatic By System API
  6. struts2校验总结
  7. java出错
  8. JavaScript之表单验证讲解
  9. 支持IE6以上阴影效果纯CSS
  10. Copy-VMFile
  11. 解构控制反转(IoC)和依赖注入(DI)
  12. HDOJ/HDU 2549 壮志难酬(取小数点后几位~)
  13. Centos 下安装MongoDB
  14. Boost库安装与使用
  15. spring mvc框架 遇到的问题
  16. Docker镜像压缩
  17. shell脚本中字符串的常见操作及&quot;command not found&quot;报错处理(附源码)
  18. ADB——连接手机的三种方式
  19. linux(Redhat7)安装Apache
  20. 136.137.260. Single Number &amp;&amp; 位运算

热门文章

  1. SQL双重游标(双重循环)--笔记
  2. java中二进制和流的相互转换
  3. 第一篇博客 iframe自适应高度
  4. php的Excel相关操作
  5. IE兼容性
  6. 遍历json对象---Java
  7. admin 后台 bs模板
  8. Linux--多网卡的7种Bond模式
  9. CentOS 6.4 搭建git 服务器
  10. Java语言中几个常用的包