Can u create a primary key with out unique index.

Answer Posted / nisith ranjan samal

Yes,you can create primary key without creating unique index.
Alter table table_name add constraint constraint_name primary key(colum_name) disable

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 the difference between inner join and natural join?

519


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

1715


Is sql open source?

553


How do I start sql from command line?

543


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

1733






What is sql select statement?

511


How many tables can a sql database have?

537


Explain the update statement in sql

572


Which join condition can be specified using on clause?

524


Is crud a cuss word?

562


Why trigger is used in sql?

541


Does oracle roll back the transaction on an error?

548


What are all the different normalizations?

593


GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?

2582


What are the basic sql commands?

556