Two Methods of retrieving SQL?
Answers were Sorted based on User's Feedback
Answer / srilekha
using select stmt and cursor u can retrive the records
Is This Answer Correct ? | 127 Yes | 6 No |
Answer / prasad
two methods of retrieving SQL are
1) is select stmt
2) is cursor
we can use these commands to retrive the related records
Is This Answer Correct ? | 62 Yes | 8 No |
Answer / 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 |
What is Highwatermark?
What is the main reason behind using an index?
how can I make a script that can be bi-language (supports english, german)? : Sql dba
What is primary key in db?
What is ON DELETE CASCADE?
Is join an inner join?
What is Difference Between Unique and Primary Key Constraints?
How can I create a table from another table without copying any values from the old table?
Does oracle use sql?
What is left join in postgresql?
function can return value ,procedure also return value through out parameter then what is the difference?
What is the Query to print out the individual total number of duplicate row in sql.