2. Embedded SQL for C : C++ Programming : How to Create ESQL/C++ Programs : How to Transfer Data Between Programs and the Database
 
Share this page                  
How to Transfer Data Between Programs and the Database
To transfer data between your application and the database, you can use either of the following techniques:
Declare class members to ESQL, and use them in ESQL DML statements (select, update, insert, and delete) in class member functions.
Copy data between class members and local variables. Use the local variables in ESQL statements to transfer data between your application and the database.
Names of variables that are declared to the ESQL/C++ precompiler must be unique in the scope of the source file. If you declare class members, avoid using the same name for members in different classes.