博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【转载】NativeSQL实例
阅读量:4654 次
发布时间:2019-06-09

本文共 1673 字,大约阅读时间需要 5 分钟。

转自:
 
 
------------------------------------------------------------
 
在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
 

转载于:https://www.cnblogs.com/mingdashu/p/5264793.html

你可能感兴趣的文章
读APUE分析散列表的使用
查看>>
jquery选中checkbox多选项并添加到文本框中
查看>>
CI框架后台添加左侧导航栏出现的一系列问题
查看>>
cocos2d-js 运行动画
查看>>
1.基础知识
查看>>
[NOI2018]你的名字
查看>>
关于mysql中select * for update锁表与Deadlock found when trying to get lock; try restarting transaction...
查看>>
[uva 1350]数位dp+二分
查看>>
445port入侵具体解释
查看>>
事务并发、事务隔离级别
查看>>
求无序数组中第二大的数--快速选择
查看>>
ios文字描边
查看>>
linux命令之pssh命令
查看>>
redis
查看>>
一个JQUERY文件
查看>>
多角度比较市面上的主流「移动推送服务」
查看>>
intellij 设置-试验过的
查看>>
cf 12C Fruits(贪心【简单数学】)
查看>>
探索WebKit内核(一)------ 菜鸟起步
查看>>
Redis Windows版安装详解
查看>>