VideosMy ProjectsProgramming BlogGallery
  1. Home
  2. Blog
  3. Adding a default value constraint to a column in SQL
Programming Blog

Atom/RSS Feed

sql

Adding a default value constraint to a column in SQL

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;
Join my mailing list