how to create a primary key with out creating an index?

Answer Posted / vinoth

ALTER TABLE EMP ADD CONSTRAINT EMP_PK PRIMARY KEY(EMPNO)
DISABLE;

Primary key constraint is created and no index is created
since the constraint is disabled initially.

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a primary key? : Sql dba

552


How does index help in query performance?

563


What is the difference between local variables and global variables?

607


What is prepared statement in sql?

543


what is the difference between a having clause and a where clause? : Sql dba

517






How do you update a value in sql?

547


Are stored procedures faster than queries?

522


What is the difference between a query and a report?

516


Is it mandatory for the primary key to be given a value when a new record is inserted?

708


how to select unique records from a table? : Sql dba

628


How do you create a db file?

520


How exception is different from error?

539


Can we perform dml in function?

592


What is a temporal table?

493


What is the difference between functions, procedures, and packages in pl/sql?

482