zoukankan      html  css  js  c++  java
  • 【转载】NativeSQL实例

     
     
    ------------------------------------------------------------
     
    在ABAP程序中除使用 EXEC SQL 执行NativeSQL外,还有一种动态使用Native sql的方法:ADBC API
     
    实例程序:ADBC_DEMO
     
    SAP提供的全局类有:
    cl_sql_connection
    cl_sql_statement
     
    ADBC API 简介如下:
    ADBC - ABAP Database Connectivity
     
    ADBC is an API for the Native SQL interface of the AS ABAP that is based on ABAP Objects.
     
    The methods of ADBC make it possible to;
     
    send database specific SQL commands to a database system and process the result
    to establish and administer database connections.
    While the statements of Native SQL offer exclusively static access to the Native SQL interface, ADBC makes an object orientated and dynamic access possible.
     
    The ADBC classes all begin with the prefix CL_SQL_ or CX_SQL_ and are documented. The following paragraphs briefly introduce the most important classes.
     
    CL_SQL_STATEMENT - Execution of SQL Statements
    CL_SQL_PREPARED_STATEMENT - Prepared SQL Statements
    CL_SQL_CONNECTION - Administration of Database Connections
    CX_SQL_EXCEPTION - Exception Class
    Notes
     
    Note ADBC can always be used when access to a database via the Native instead of the Open SQL interface is necessary and static access is not sufficient.
    ADBC does not support automatic client handling. The client ID of a database table must be specified explicitly. Note that application programs should only use data from the current client. In Multitenancy systems, this is checked by the ABAP runtime environment.
     
     
    Continue
    CL_SQL_STATEMENT - Execution of SQL Statements
    CL_SQL_STATEMENT - Prepared SQL Statements
    CL_SQL_CONNECTION - Database Connections
    CX_SQL_EXCEPTION - Exception Class
    Examples of ADBC
     
  • 相关阅读:
    winform控件库二次开发yy
    Oracle数据库表死锁和解锁
    集合去重筛选
    linux手动生成core dump
    HandlerSocket简介以及php使用handlersocket
    使用truss、strace或ltrace诊断软件的“疑难杂症”
    Sqlserver 2012 导出表数据为SQL脚本
    MySQL的索引为什么使用B+Tree
    计算机体系
    docker使用
  • 原文地址:https://www.cnblogs.com/mingdashu/p/5264793.html
Copyright © 2011-2022 走看看