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 ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to return query output in xml format?
i made a table whih contain a column "Photo" with image data type and i want to insert the byte of a picture present in my hardisk using insert statement in that colum... so what will be my insert statement?
How do you insert a table?
Is foreign key indexed mysql?
How to enter numeric values as hex numbers?
What do ddl, dml, and dcl stand for?
What is the use of mysql workbench?
How do you backup a database in mysql?
Is mysql case-sensitive?
How do I find mysql database?
What is the difference between mysql and oracle?
How do I restart mysql on windows?
How do I insert multiple rows in a table?
How do I edit a database in mysql workbench?
What is mysql aggregate functions? Explain