What is the diff. bwt. primary key and unique key?

Answer Posted / sonu kumar

primary of any table can't be null but unique can be
primary key may be a unique key but unique can't be a primary key b/c primary key of any relation cant be a null value

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between mysqli and pdo?

663


How to create trigger in mysql workbench?

738


Write a query to select all teams that won either 1, 3, 5 or 7 games.

1053


How can you handle the –secure-file-priv in mysql?

694


What is triggers?

707


How can you import tables from a sql file into a database by using the mysql client?

734


Is mysql is a programming language?

724


Does mysql need a server?

675


Is mysql owned by oracle?

722


Is mysql still popular?

664


How do I disconnect mysql workbench?

781


Is mysql same as mariadb?

663


Are stored procedures precompiled?

709


How can you retrieve a particular number of records from a table?

686


What is the difference between BLOB AND TEXT?

787