0

I have a table. This table has no rows in it currently and every column has some sort of default value.

I do not wish to actually insert any data, but I want 1 row to appear with all of the default values. How do I do this? This does not work:

insert into testing.constants values defaults;

1 Answer 1

1

I think the syntax is default values:

insert into testing.constants default values;

You might be confused with setting a default for one particular column. For instance:

insert into testing.constants(col1, col2)
    values (default, default);
Sign up to request clarification or add additional context in comments.

1 Comment

That's what it was. Darn. Thanks Gordon!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.