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
Are sql database names case sensitive?
What is the difference between execution of triggers and stored procedures?
What is consistency?
When sql appeared?
what are the different type of normalization? : Sql dba
what are the advantages of sql ? : Sql dba
State few characteristics of pl/sql?
Can we create view in stored procedure?
Which is faster union or join?
Why do we use procedures in sql?
What is the difference between unique and primary key constraints?
Is not null in sql?
What is the difference between sql, mysql and sql server?
how to start mysql server? : Sql dba
Explain how exception handling is done in advance pl/sql?