arrow_back Back to Notebook
sql
sql
January 10, 2019

Adding a default value constraint to a column in SQL

To add a default value to a column in SQL you can do the following

Add default value example

ALTER TABLE table_name
    ALTER COLUMN column NAME
        SET DEFAULT default_value;

Thanks for reading!

John Wiseman

Full-Stack Software Engineer building scalable digital solutions. specializing in modern web technologies and mission-critical systems.

© 2026 Wiseman Systems Pty. Ltd.

Navigation

Start a Conversation

Ready to discuss your next project? Let's build something extraordinary together.

Get in Touch