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
In pl/sql, what is bulk binding, and when/how would it help performance?
what is user defined functions? : Sql dba
What information is needed to connect sql*plus an oracle server?
Explain locks? : Transact sql
what is the difference between ereg_replace() and eregi_replace()? : Sql dba
How to convert comma separated string to array in pl/sql?
What is online transaction processing (oltp)?
How to change a value of the field ‘salary’ as 7500 for an employee_name ‘john’ in a table employee_details?
What are the types of variable use in pl sql?
how to concatenate two character strings? : Sql dba
Differentiate between sga and pga.
Explain the purpose of %type and %rowtype data types with the example?
Can we use the cursor's to create the collection in PL/SQL?
What are sql ddl commands?
Can we enter data in a table in design view?