Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 266 Bytes

setting-default-values.md

File metadata and controls

9 lines (6 loc) · 266 Bytes

How to set a set default value

Sometimes we want to set a default value into our tables, if there is no data for that column.

email VARCHAR(30) DEFAULT 'no email'

Using DEFAULT after we have declared the data type allows us to use a default value.