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
How do you add a column to a table?
how does a local variable is defined using t-sql? : Transact sql
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
How does postgresql compare to "nosql"?
Why do we use function in pl sql?
What is dcl in sql?
Is json a nosql?
What is a join?
How can we optimize a sql query?
What is a primary key? Explain
i have some prob lem to tell me about my self in interview first round ...
What are the two types of cursors in pl sql?
What are the different dcl commands in sql?
What is the difference between left outer join and left join?
Which is faster union or join?