What is differance unique key and primary key.
Answer Posted / madhu
unique key:
1.unique key will accept more than one null value.
2.whenever u created a unique key, then internally one non-clustered index will be created(one table can have more than one Non-clustered index).
3.one table can have more than one unique key.
Primary key:
1.One table should have one primary key only.
2.primary key will not accept null values.
3.whenever u created a primary key then internally one clustered index will be created(one table can have only one clustered index).
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is database sql?
Can we call stored procedure in function?
what is the command line end user interface - mysql? : Sql dba
Explain the purpose of %type and %rowtype data types?
What is the limitation on the block size of pl/sql?
What is transaction control language (tcl)?
How to use distinct and count in sql query? Explain
What is difference between left and right outer join?
GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?
What is the least restrictive isolation level? : Transact sql
what are the system privileges that are required by a schema owner (user) to create a trigger on a table?
What are sql ddl commands?
How do you drop a trigger?
Write a query to find the names of users that begin with "um" in sql?
What are the types of variable use in pl sql?