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 schema means?
What are the different types of database management systems?
What is a table partition?
what is blob? : Sql dba
what is union, minus and interact commands? : Sql dba
Can sql function call stored procedure?
What is dense_rank?
Does view store data in sql?
What is a pl/sql block?
What is difference between stored procedure and trigger?
What is data type in sql?
Is foreign key mandatory?
Is pl sql useful?
what is a database lock ? : Sql dba
what are ddl statements in mysql? : Sql dba