-
-
-
row level,statement level,before,after,insert,update,delete 3*2*2 total 12 types.
and can i even mention instead of triggers,database trigger and schema triggers">If anyone asks in interviews, about "what are the types of triggers" then my ans is likerow level,statement level,before,after,insert,update,delete 3*2*2 total 12 types.and can i even mention instead of triggers,database trigger and schema triggers
-
-
-
-
-
table is also there "phone" with phoneno as a field but table is empty.now i want the result into table2.
got it, Right!
Let me know if u have any questions.
thanks.
dev
">Hi all,thank u for ur answers.and i have an adjustment in this question.actually data is not present in a table, it's there in some file.For eg. "Data" is the file, it contains information: 2489078905,2345678909 and so on...table is also there "phone" with phoneno as a field but table is empty.now i want the result into table2.got it, Right!Let me know if u have any questions.thanks.dev
-
-
Example:
declare
cursor CSRtest is
select *
from emp
for update of lastname;
begin
for i in CSRtest loop
...do something
...call procfedure with "commit"
update emp set lastname = "..."
where current of CSRtest;
endloop;
Results in "ORA-01002: fetch out of sequence" because curser is closed after "Commit"
How to "save state of curser" ?
Any workaround?">How to run a curser for update "with hold2 in PL/SQL ?Example:declarecursor CSRtest is select * from emp for update of lastname;beginfor i in CSRtest loop...do something...call procfedure with "commit"update emp set lastname = "..." where current of CSRtest;endloop;Results in "ORA-01002: fetch out of sequence" because curser is closed after "Commit"How to "save state of curser" ?Any workaround?
-
-
-
-
-
-
-
-
-
-
PL/SQL Interview Questions
Ans