Prepares and executes a SQL statement in one step. DB_ExecDirect is the fastest way to submit a SQL statement for one-time execution. Binding of program variables and random variables used in the SQL statement is done automatically.
DBAPI.bdh
DB_ExecDirect(in cCursor: cursor, in sqlStat: sql): number;
SQL return code
|
dcltrans transaction TExecDirect var nRetCode: number; begin ... nRetCode := DB_ExecDirect(c1, InsSelling); ... end TExecDirect; dclsql InsSelling: INSERT INTO sale VALUES (:gAno, "121297", 'N', :rTerm);
Trans.bdf, MutexLogin.bdf