Returning new ID in TPGSQL class
Posted: Tue 16 Oct 2018 08:01
Hello!
I saw an example with PGQuery which can return the last inserted id.
But could I use same technic with TPGSQL class?
For example:
insert into ins_test(name) values (:name) returning id into :id
Could this class retreive the inserted record id somehow? Or is it available only in TPGQuery records?
Thanks
dd
I saw an example with PGQuery which can return the last inserted id.
But could I use same technic with TPGSQL class?
For example:
insert into ins_test(name) values (:name) returning id into :id
Could this class retreive the inserted record id somehow? Or is it available only in TPGQuery records?
Thanks
dd