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 union and union all keyword in sql and what are their differences?
How can I speed up sql query?
What is the use of <> sql?
What is the maximum size of sqlite database?
What is the source code of a program?
What are the basic techniques of indexing?
How many columns should be in an index?
define join and explain different type of joins? : Sql dba
How do I turn a list into a table?
what are all the common sql function? : Sql dba
What is a procedure in pl sql?
How do we use distinct statement? What is its use?
what is the difference between where clause and having clause? : Sql dba
What is sql indexing?
How do you use collections in procedure to return the resultset?