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
Define SQL and state the differences between SQL and other conventional programming Languages?
Explain commit, rollback and savepoint.
Does sql view stored data?
Can we insert delete data in view?
1) Synonyms 2) Co-related Subquery 3) Different Jobs in Plsql 4) Explain Plan 5) Wrap 6) Query Optimization Technique 7) Bulk Collect 8) Types of index 9) IF primary key is created then the index created ? 10) Foreign Key 11) Exception Handling 12) Difference Between Delete and Trunc 13) Procedure Overloading 14) Grant Revoke 15) Procedure Argument types. 16) Functions. 17) Joins
How to read/write files from pl/sql?
What is the difference between the repeatable read and serializable isolation levels? : Transact sql
What is write ahead logging in sql server?
Explain the components of sql?
Is crud a cuss word?
What is the difference between clustered and non-clustered index in sql?
What is interval partition?
Which is the correct statement about truncate and delete?
Why is sql*loader direct path so fast?
Define sql delete statement.