IN A TABLE HAVE ONE COLUMN PRIMARY KEY..IT WILL NOT ALLOWS
NULL VALUES AND DUPLICATE VALUES..INSTEAD OF PRIMARY KEY
WHY CANT WE USE UNIQUE AND NOT NULL.THESE TWO ALSO DOESNT
ACCEPT NULL VALUES IN NOT NULL AND UNIQUE DOESNT ACCEPT
DUPLICATE VALUES?
SO WHAT IS THE DIFEERENCE BETWEEN(UNIQUE,NOT NULL) AND
PRIMARY KEY??????

Answer Posted / banti

Both r same :)
Primary Key= (Unique + Not Null)

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference in execution of triggers and stored procedures?

661


what is 'mysqlimport'? : Sql dba

641


What are the two types of periodical indexes?

581


what are properties of a transaction? : Sql dba

657


what is the syntax used for partition in tsql? : Transact sql

637






What is string data type in sql?

629


Which join is like inner join?

669


what is a trigger in mysql? : Sql dba

696


Which is better join or subquery?

700


What is application trigger?

652


Mention what pl/sql package consists of?

628


What is difference between table and view?

612


The select into statement is most often used to create backup copies of tables or for archiving records?

666


Table 1: col1 Timestamp ---------------- 01-mar-2012 11:12:46 Table 2: col2 Timestamp -------------------- 01-mar-2012 11:12:10 01-mar-2012 11:11:23 Write a query to display a row with table2 col2 value less than tabl1 col1 value. Maximum timestamp value previous to table1 col1 value. Display a result as: Col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10

1802


What do you understand by pl/sql records?

628