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
Is the primary key an index?
When are we going to use truncate and delete?
What are the limitations of sql express?
What is the difference between a primary key and a clustered index?
How do I order by ascending in sql?
Why do we create views in sql?
what is index? : Sql dba
Does inner join return duplicate rows?
What is the difference between function, procedure and package in pl/sql?
what is cursor and its type, what is ref cursor write a syntax to pass ref cursor into procedure out fucntion and call the procedure
What is raw datatype in sql?
what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba
Is primary key a clustered index?
Mention what plvcmt and plvrb does in pl/sql?
Which is faster truncate or drop?