What is difference b/w composit key n primary key and
forigion key?
Answer Posted / saraswathi muthuraman
Compost key :
More than one column will be used to create compst key
SQL> create table ts_250 (a number,b number,c number,
primary key(a,c));
Table created.
here column A and column C is used to create compst key.
U can't insert null value in both columns.
Only unique combination of column A and column B value can
be inserted.
Primary key :
Key will be created on a single column in table.
SQL> create table ts_251 (a number,b number,c number,
primary key(a));
Table created.
null value cann't be inserted into column a.
oracle will create a index
only unique value can be inserted into column a.
only one primary key can be created on a table
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
How can I create table in mysql?
Is oracle mysql free?
How to drop an existing view in mysql?
How does php communicate with mysql?
What is difference between pdo and mysqli?
How can you see all indexes defined for a table?
What are the technical specifications of mysql?
1)for snapshot replication which agents used? 2)for Transcation replication which agents used? 3)for merge replciation which agents used?
What are the benefits of mysql?
How do I create a new database in mysql?
How do you connect MySQL database with PHP?
can you tell what are the different set operations available in mysql? : Mysql dba
What is the use of innodb in mysql?
What is the date format in mysql?
How to delete a trigger in mysql?