I want to migrate my application from PostgresDAC.
Sometimes I use INSERT with a RETURNING clause.
Please take a look at my query:
Code: Select all
INSERT INTO operat(ticket, oplogin)
VALUES (nextval('counter'),'syagrius')
RETURNING ticket;
So I tried to use a PgConnection.ExecSQL(MyQuery, []).
But ExecSQL returns nothing.
How can I read the resulting field (or record)?
My English is not good so I can PM a little project if you need it.
Regards
Syagrius