I created a table called customer
, which consists of one attribute called email
.
Then I would like to add a constraint to email
attribute.
Following is my coding:
Create table customer ( email varchar(100));
Here is my constraint: "@" must be included in the email
However, I don't know how to add this constraint. I am total new to psql. Thank you very much!