Jump to content

************CALLING SQL AND ORACLE EXPERTS*******************************


Recommended Posts

Posted

PRMIRAY KEY AND UNIQUEUE INDEX KI DIFFERENCE ENTI??

Posted

question ardam avvala...
unique key ki index untaada..???
clustered and non clustered index untai ga sCo_^Y sCo_^Y

Posted

[quote author=stewiegriffin link=topic=202203.msg2466348#msg2466348 date=1307924841]
question ardam avvala...
unique key ki index untaada..???
clustered and non clustered index untai ga sCo_^Y sCo_^Y
[/quote]
CREATE UNIQUE INDEX index_name
ON table_name (column_name)

Posted

a superb website to answer all your questions.....its only for oracle but it answers this question


[url=http://asktom.oracle.com/pls/asktom/f?p=100:11:2980497779515547::::P11_QUESTION_ID:4941517587762]http://asktom.oracle.com/pls/asktom/f?p=100:11:2980497779515547::::P11_QUESTION_ID:4941517587762[/url]

Naaku telsina oke difference, primary key doesn't allow null values but the column on which we create the unique index may have one null value.....i am not sure about it....

Posted

[quote author=SOURYAM link=topic=202203.msg2466353#msg2466353 date=1307924912]
CREATE UNIQUE INDEX index_name
ON table_name (column_name)
[/quote]
unique indexes comes under non clustered index category...
the column shouldn't have null values to be declared as unique index..
primary keys are generally clustered indexes
not sure though

Posted

[quote author=CheGuevara link=topic=202203.msg2466366#msg2466366 date=1307925079]
a superb website to answer all your questions.....its only for oracle but it answers this question


[url=http://asktom.oracle.com/pls/asktom/f?p=100:11:2980497779515547::::P11_QUESTION_ID:4941517587762]http://asktom.oracle.com/pls/asktom/f?p=100:11:2980497779515547::::P11_QUESTION_ID:4941517587762[/url]

Naaku telsina oke difference, primary key doesn't allow null values but the column on which we create the unique index may have one null value.....i am not sure about it....
[/quote]

the only difference is primary doesnot allow null values where other one llows anthena..but both provides unique values. #4H# #4H#

Posted

[quote author=SOURYAM link=topic=202203.msg2466382#msg2466382 date=1307925300]
the only difference is primary doesnot allow null values where other one llows anthena..but both provides unique values. #4H# #4H#
[/quote]Primary key clustered index (oka clustered index ee untundi per table) whereas unique key forms non clustered index...

PK dont allow NULL whereas Unique key can allow nulls....

storage difference untundi internal ga ee keys ki

Posted

[quote author=Emperor link=topic=202203.msg2466388#msg2466388 date=1307925421]
Primary key clustered index (oka clustered index ee untundi per table) whereas unique key forms non clustered index...

PK dont allow NULL whereas Unique key can allow nulls....

storage difference untundi internal ga ee keys ki
[/quote]
@gr33d @gr33d
nenu tappu type chesa

Posted

thankyou thankyou thankyou all.naaku difference telisindi

×
×
  • Create New...