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 does limit work in mysql?
What are the different types of triggers in mysql?
Is mysql free download?
What is mysql workbench used for?
What is mysql aggregate functions? Explain
How to use mysqldump to create a copy of the database?
How do I add a column to a table in mysql?
Can mysql scale horizontally?
How do I find mysql database?
What is mysql data directory? How to determine the location of the data directory?
What is difference between microsoft sql and mysql?
What is data directory in mysql?
How do I edit a table in mysql?
What is mysql connector used for?
What is mysqli_free_result?