Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How do you optimize a stored procedure in sql?

1014


Are null values same as that of zero or a blank space?

1064


How to process query result in pl/sql?

1196


Why is %isopen always false for an implicit cursor?

1150


What is the difference between an inner join and an outer join?

1073


What is sql procedures and functions?

1071


Why functions are used in sql?

1040


How to disable a trigger name update_salary?

1308


what does it mean to have quoted_identifier on? : Sql dba

1179


What is a table in a database?

1094


How do I remove duplicates in two columns?

1146


What does pl sql developer do?

977


What are the operators in sql?

1067


What's the difference between inner join and left join?

1038


What is sqlca in db2?

1032