Home » U++ Library support » U++ SQL » Implementing PostgreSql returning statement
Implementing PostgreSql returning statement [message #50044] |
Tue, 26 June 2018 19:43  |
busiek
Messages: 70 Registered: February 2011 Location: Poland
|
Member |
|
|
Hi all,
For my needs I implemented PostgreSql returning statement. Using it is much faster then calling GetInsertedId(). You can use such code:int id = SQL % Insert(TABLE)(COLUMN1, value1)(COLUMN2, value2).Returning(ID); I attach a patch. I am not sure whether it could be added to official sources because it is PostgreSql specific.
|
|
|
|
|
Goto Forum:
Current Time: Tue Apr 29 05:49:16 CEST 2025
Total time taken to generate the page: 0.00712 seconds
|