What are constraints? Explain different types of
constraints?
Answer Posted / haritha
constraint is a rule which can not be voilated by end users.
Different types of constraints are available.They are:-
1)default constraint:-which is used to define a default
value.
2)primary key:-the key which does not allows duplication
and null values.
3)foreign key:-the key used to refer primary key defined
field in another table and it allows duplication.
4)null:-which allows NULL values.
5)not null:-which does not allows NULL values.
6)unique key:-which does not allows duplication but allows
NULL values.
| Is This Answer Correct ? | 283 Yes | 70 No |
Post New Answer View All Answers
What is “begin trans”, “commit tran”, “rollback tran” and “savetran”?
what is the system function to get current user's user id? : Sql server database administration
What number sorts of privileges are accessible in sql?
What should be the fill factor for indexes created on tables? : sql server database administration
What is the datatype of rowid?
What is the contrast amongst drop and truncate?
Sql server reporting services vs. Crystal reports.
what is new philosophy for database devises for sql server 7.0? : Sql server database administration
Can a database be shrunk with users active?
What is the difference between join and inner join?
What is a system database and what is a user database?
What is stored procedures?
Where the sql logs gets stored? : sql server database administration
Which is the latest version of sql server and when it is released?
What are logical/boolean operations in ms sql server?