zoukankan      html  css  js  c++  java
  • DB2 for Z/os Statement prepare

    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.

    Start of changeThe statement that is prepared using only the EXPLAIN privilege cannot be executed, and only the descriptive information can be obtained for that statement.End of change

    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

  • 相关阅读:
    排序算法(二)插入排序---直接插入排序
    Shazam 是如何听音辨曲的?
    Android 读取<meta-data>元素的数据
    Android <uses-featureandroid:name="string">详解
    Android AsyncTask的用法
    Android ViewPager使用详解
    Git 使用教程(4)—— Git 常用命令集合
    Git 使用教程(3)
    Git 使用教程(2)
    Git 使用教程
  • 原文地址:https://www.cnblogs.com/sthv/p/5752945.html
Copyright © 2011-2022 走看看