Retool Database - Return UUID after Insert

@turps808 you can use RETURNING at the at of your INSERT, eg:

INSERT INTO table (firstname, lastname) VALUES ('John, 'Doe') RETURNING uuid, firstname;

This will return the uuid and firstname after insertion. Or use only uuid or * for all fields

1 Like