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
Is sqlite free?
Does sql between include endpoints?
What is database white box testing and black box testing?
What is native sql query?
Is primary key is clustered index?
What is the difference between microsoft access and sql server?
How do you delete data from a table?
What is the difference between in and between in sql?
What is ttitle and btitle?
What do you understand by pl/sql packages?
How to get list of all tables from a database?
Is sql developer case sensitive?
How many times can we commit in a loop?
What is percent sign in sql?
what are properties of a transaction? : Sql dba