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
what is an execution plan? When would you use it? How would you view the execution plan? : Sql dba
Does truncate need commit?
What is the difference between join and natural join?
How do I truncate a sql log file?
What is query syntax?
What is a natural join sql?
What is the difference between sql and mysql?
What are the types of optimization?
What are the types of join in sql?
What is 19 null in sql?
How many types of literals are available in pl sql?
What are predefined functions in sql?
What is a schema sql?
Which is faster union or join?
What are all types of user defined functions?