Created
December 4, 2024 08:56
-
-
Save hanula/872e74b7e17ca26b06cfcdc25e6b1a77 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| INSERT INTO xxx | |
| SELECT ( | |
| f | |
| #= hstore('id', nextval(pg_get_serial_sequence('xxx', 'id'))::text) | |
| #= hstore('somefield', 'value') | |
| ).* FROM xxx f WHERE id=XXX; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment