Unique Key Constraint is used, when we want to keep the value of a specific column unique i.e non-repeatable. After creating a table using a unique key constraint, it doesn’t allow to insert of repeated value.
It will give an error (UNIQUE constraint failed: user_detail.email) while inserting the same email "fresherbell@gmail.com" more than one time.
# | Program | Language |
---|---|---|
1 | SQL | |
2 | SQL | |
3 | SQL | |
4 | SQL | |
5 | SQL | |
6 | SQL | |
7 | SQL | |
8 | SQL | |
9 | SQL | |
10 | SQL | |
11 | SQL | |
12 | SQL | |
13 | SQL | |
14 | SQL | |
15 | SQL | |
16 | SQL | |
17 | SQL | |
18 | SQL | |
19 | SQL | |
20 | SQL | |
# | Program | Language |
Copyright © 2020 Inovatik - All rights reserved