how can i execute the Insert statement and update statement in the same datesat simultaneously.
the code like----------
insert into XX() values();
update XX set y = :y
where xxx;
------------------------
how can i make multistatement in TPgQuery?
The error "Update failed. Found 0 records" is generated by PgDAC. This error does not mean that the first statement is not processed.
PgDAC raises this error if RowsAffected = 0 after executing your query. You should check your database to learn if a row was inserted. RowsAffected can be zero because your query contains several statemens but query is executed successfully. In this case you can set the StrictUpdate option of TPgQuery to False to disable checking for RowsAffected.
PgDAC raises this error if RowsAffected = 0 after executing your query. You should check your database to learn if a row was inserted. RowsAffected can be zero because your query contains several statemens but query is executed successfully. In this case you can set the StrictUpdate option of TPgQuery to False to disable checking for RowsAffected.