I have a table with two columns, id and created. Both have default values, so I should be able to insert a new row without supplying any data.
However, this syntax does not work:
INSERT INTO books () VALUES ()
I would also like to return the generated id of the inserted row. This syntax also does not work:
INSERT INTO books () VALUES () RETURNING id
How do I write this query in Postgres SQL?