3. Statements : OpenROAD SQL Statements : Inquire_sql Statement : Example—Inquire_sql Statement
 
Share this page                  
Example—Inquire_sql Statement
Check for an error before committing a database statement:
insert into newemp(name, address, town)
     values('Jones', '143 Longview Dr', 'Anytown');
inquire_sql(mistake = errorno);
if mistake = 0 then
     commit;
else
...