You do not need to specify each individual column, but you may not be able to create an βemptyβ record. Check the NOT NULL constraints on the table. If not (not including the primary key constraint), then you will need to specify only one column. Like this:
insert into my_table ( some_column ) values ( null );
Do you know about RETURNING? You can return this PC back to the calling application when you execute INSERT.
insert into my_table ( some_column ) values ( 'blah' ) returning my_table_id into <your_variable>;
I would question the approach. Why create an empty string? This could mean that there are no restrictions on this table; this is bad if you need good, clean data.
source share