If we declare constraints Unique and Not null on a single
column then it will act as a Primary key, so what is the use
of primary key??

Answer Posted / ashok

Internally , There is same as primary key and unique not null.
You can say unique + not null is higher step of primary key .
So there is no basic difference between this two.

Is This Answer Correct ?    7 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you add a column to a table?

770


how does a local variable is defined using t-sql? : Transact sql

725


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

1899


How does postgresql compare to "nosql"?

767


Why do we use function in pl sql?

752






What is dcl in sql?

694


Is json a nosql?

723


What is a join?

808


How can we optimize a sql query?

766


What is a primary key? Explain

734


i have some prob lem to tell me about my self in interview first round ...

1887


What are the two types of cursors in pl sql?

733


What are the different dcl commands in sql?

761


What is the difference between left outer join and left join?

697


Which is faster union or join?

702