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 the syntax used for partition in tsql? : Transact sql
what happens if null values are involved in expressions? : Sql dba
what is heap table? : Sql dba
What is use of term?
What does truncate mean in sql?
What is package in pl sql with an examples?
Is it possible to create the following trigger: before or after update trigger for each row?
What does sign mean sql?
Is it possible to create startup or shutdown trigger for on-schema?
Does oracle use sql?
Explain ttitle and btitle.
What are the types of subqueries?
Why do we need databases?
What are predefined functions in sql?
How many tables can you join in sql?