how to create a primary key with out creating an index?
Answer Posted / akshay
yes it possible using trigger
Create sequence S_Number
start with 1
increment by 1;
create trigger Pri_key before insert on table(C1)
for each row
Variable number(5);
begin
select sequence.nextvalue into Variable;
insert into table c1 value(variable);
end
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is primary key and foreign key?
What is nested table in pl sql?
What is the need of a partition key?
What is a data manipulation language?
what are the different tables present in mysql, which type of table is generated when we are creating a table in the following syntax: create table employee (eno int(2),ename varchar(10)) ? : Sql dba
What are the basic techniques of indexing?
What are packages in pl sql and also explain its advantages?
what is a database lock ? : Sql dba
What is union, minus and interact commands?
Explain the difference between triggers and constraints?
Can we use pl sql in mysql?
Which data type is a composite type?
How do I kill a query in postgresql?
which command using query analyzer will give you the version of sql server and operating system? : Sql dba
Why stored procedure is better than query?