Constraint | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Constraint

what about add constraint after create the table ?

26th Jul 2016, 8:55 PM
Abdalrhman Shazally Abdalrhman Alhassan
Abdalrhman Shazally Abdalrhman Alhassan - avatar
3 Answers
+ 2
example of adding primarykey constaint... ALTER TABLE Table1 ADD PRIMARY KEY (Id) remember when u r altering table the values of id should qualify for primary key else this will be failed.
27th Jul 2016, 12:21 AM
sreeraj g
sreeraj g - avatar
0
yes inline constraint and by alter they should. explain that to others
27th Jul 2016, 5:34 AM
Abdalrhman Shazally Abdalrhman Alhassan
Abdalrhman Shazally Abdalrhman Alhassan - avatar
0
good answers
6th Aug 2016, 5:53 PM
Chambah Russell
Chambah Russell - avatar