You use the sdb.dbm Module to execute SQL statements in a database instance using the Python program. To do this, create a Python file sample_n.py and then call it using the following command:
python sample_n.py <database_user> <database_user_password> <database_name>
Examples of executing DBM commands using the sdb.sql module:
SELECT Statement and Calling the Result Set Step-by-Step
SELECT Statement and Calling the Result Set in a for-Loop
SELECT Statement and Displaying the Structure of the Result Set
Executing an INSERT Statement Multiple Times with Different Parameters