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
Why is normalization important?
How many scalar data types are supported in pl/sql?
What is the difference between inner join and natural join?
What do you mean by table in sql?
How do you exit in sql?
What is equi join in sql?
What is sorting in sql?
Explain the components of sql?
Explain the commit statement.
What is the difference between an inner and outer join?
Why do we create stored procedures & functions in pl/sql and how are they different?
What is sql not null constraint?
What is the difference between the repeatable read and serializable isolation levels? : Transact sql
what is the command used to fetch first 5 characters of the string? : Sql dba
What is cursor in pl sql?