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
Who developed mysql?
I want to find out all databases starting with ‘test’, I have access to?
What is 'mysqldump'?
How much does mysql cost?
What does mysql_fetch_assoc do?
What do ddl, dml, and dcl stand for?
What is mysql connector used for?
What is clob datatype?
How many mysql connections can handle?
Which is best pdo or mysqli?
Why do we use group by and order by function in mysql?
What is procedure in mysql?
I want to insert userid of a customer,order time,etc in a table called ordermaster with orderid as primary key.Same time the product codes and required quantities (a1,2 and a2 4 and so on)inserted in another table orderdetails with same orderid reference.How the code will be in JSP using MySQL?
What do you understand by mysql terminal?
Is mysql a distributed database?