Two Methods of retrieving SQL?
Answer Posted / ashvin ranpariya
two methods of retrieving SQL is
1) Select Statment
Example: select * from XYZTBLES;
2)Cursor
Example:
declare
type r_cursor is REF CURSOR;
c_emp r_cursor;
en emp.ename%type;
begin
open c_emp for select ename from emp;
loop
fetch c_emp into en;
exit when c_emp%notfound;
dbms_output.put_line(en);
end loop;
close c_emp;
end;
| Is This Answer Correct ? | 49 Yes | 5 No |
Post New Answer View All Answers
how many ways we can we find the current date using mysql? : Sql dba
What are the built in functions of sql?
How do I save a stored procedure?
What does desc stand for?
What is use of term?
Explain the advantages and disadvantages of stored procedure?
Does execute immediate commit?
what is the difference between a web-garden and a web-farm? : Sql dba
What does data normalization mean?
explain the options of myisamchk to improve the performance of a table. : Sql dba
what is column? : Sql dba
What is trigger and types?
How bulk collect improves performance?
What is a mutating table and a constraining table?
Explain how exception handling is done in advance pl/sql?