Function documentationSapDB_Prepared Class (sdb.sql Module) Locate this document in the navigation structure

 

SapDB_Prepared is a class of the sdb.sql module. You can use the methods of this class to execute the same SQL statement multiple times with different parameters. This has the following advantages:

  • The database system only needs to check the syntax and privileges once.

  • The Python application does not have to convert parameters into an SQL syntax-appropriate format, so special characters do not require special treatment.

To generate an object of this class, use the prepare method (SapDB_Session class).