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
Why do we use joins in sql?
What is insert command in sql?
What is update query?
What is sql profiling in oracle?
what is the difference between a web-garden and a web-farm? : Sql dba
what is sql profiler? : Sql dba
What is the difference between clustered and non-clustered indexes?
What are different sql data types?
What is the difference between cross join and natural join?
What are the features of pl sql?
What is replication id?
How much does sqlite cost?
What type of database is cloud sql?
How delete all data from table in sql?
how can we encrypt and decrypt a data present in a mysql table using mysql? : Sql dba