Can u create a primary key with out unique index.
Answers were Sorted based on User's Feedback
Answer / ravin
Unique constraint and unique index are different things but
their goals might be similar.
Unique index is created implicitly with the creation of
Primary key and unique key both.
Hence no primary key can be created without a unique index.
| Is This Answer Correct ? | 19 Yes | 0 No |
Answer / smita
Hi,
No , we cant create pk eithout unique index it
implicitelygenerater by oracle.
I want to clear that pk can b on one or more col but only
one pk.
While unique constraint can b one or more col and can b one
or morn unique key in a table
| Is This Answer Correct ? | 10 Yes | 1 No |
Answer / deepak singh
No,
B'cas when you create d primary key then orcale
automatically created unique index
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / 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 |
Answer / prashant
Primary key = Unique Index + Not NUll Constraint .
So we can create primary key without Unique index ..But it
is created as combination of both (Unique Index + Not NUll
Constraint ) in oracle databases.
We need not have to create Unique index . :)
| Is This Answer Correct ? | 1 Yes | 5 No |
Answer / anil kumar jampana
YES WE CAN CREATE. FIRST CREATE NON UNIQUE INDEX THEN
CREATE PRIMARY KEY.
| Is This Answer Correct ? | 2 Yes | 11 No |
Answer / sowmya k
Yes we can create a primary key without creating the Unique
key. The primary key concept is same similar to the unique
key. We can set primary key to only one column, but a
unique key constraint can be set to more then one column.
| Is This Answer Correct ? | 0 Yes | 11 No |
How write primary and foreign key relationship between two tables without using constraints? u can use any of procedure/function/trigger and any sql?
ename empno deptno amar 1 10 akbar 2 20 anthonny 3 30 jonathan 4 40 write a procedure to dispaly the column values ina row separated by a deleimiter eg - input - select ename from emp '|' output - amar|akbar|anthony|jonathan input - select empno from emp '@' o/p - 1@2@3@4 input - select deptno from emp '/' o/p - 10/20/30/40 Pls answer this questn.
How many types of normalization are there?
what is a materialized view? : Sql dba
how to show all tables with 'mysql'? : Sql dba
how many triggers are allowed in mysql table? : Sql dba
Which is faster subquery or join?
what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql
what are string data types? : Sql dba
what is oracle sql,pl/sql with interfaces
Write a query to display the current date in sql?
How do I restart sql?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)