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
What mysql means?
how can you test for null values in a database? : Mysql dba
List some comparisons operators used in mysql?
What is append query?
What is innodb mysql?
What is trigger in mysql?
Can you tell the reasons for selecting lamp(linux, apache, mysql, php) instead of any other combination of software programs, servers, and operating system?
How do you connect MySQL database with PHP?
What is inner join in mysql?
How to calculate the difference between two dates?
How do I change the max connections in mysql?
Can we store videos in mysql database?
What are programming functions?
What is the full meaning of mysql?
How do I start mysql in linux?