Ask Your Question
1

What is the method to execute INSERT without values in a PostgreSQL table?

asked 2022-02-07 11:00:00 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-07-11 17:00:00 +0000

nofretete gravatar image

To execute an INSERT without values in a PostgreSQL table, you can use the following syntax:

INSERT INTO table_name DEFAULT VALUES;

This will insert a single row into the specified table with default values for all columns. If any columns in the table have default values defined, those values will be used. If not, the default value for each column will be NULL.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-02-07 11:00:00 +0000

Seen: 10 times

Last updated: Jul 11 '21