Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Processing External Data →  ABAP - Database Accesses →  ADBC - ABAP Database Connectivity 

CL_SQL_STATEMENT - Execution of SQL Statements

The CL_SQL_STATEMENT class contains instance methods that receive and execute dynamically created SQL statements.

Instances of the CL_SQL_STATEMENT class can be created using the CREATE OBJECT statement, which allows a reference to an object of the CL_SQL_CONNECTION class to be passed to the constructor. If no database connection is passed, a standard connection from the database interface to the central database of the AS ABAP is used.

Other versions: 7.31 | 7.40 | 7.54


Note

The CL_SQL_STATEMENT class allows the statement passed to be executed once. To execute a statement multiple times with different parameters, you can use the subclass CL_SQL_PREPARED_STATEMENT.

Continue

DDL and DML Statements

Queries

Stored Procedures