Answer Posted / su
declare
TYPE tab IS TABLE OF varchar2(200)
INDEX BY binary_integer;
t tab;
v_counter number : =0;
BEGIN
FOR c_emp IN (SELECT ENAME FROM emp)
LOOP
v_counter := v_counter + 1;
t(v_counter):= c_emp.ename;
END LOOP;
FOR i IN 1 .. t.last
LOOP
dbms_output.put_line(t(i));
END LOOP;
EXCEPTION
WHEN others THEN
dbms_output.put_line(sqlcode);
dbms_output.put_line(sqlerrm);
END;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is an oracle data file?
How to connect ms access to oracle servers?
How to start a new transaction in oracle?
What are oracle functions?
What is the data pump import utility?
What are the different editions of oracle?
How does propagation differ between Advanced Replication and Snapshot Replication (read-only)?
How to run create database statement?
I have a database backup file in .db (ext) form how to conver it into .dmp (ext.) for oracle database
Design database draw er diagram for a certain scenario ?
What the is the diff between local index and global index. give some example.
How to shutdown your 10g xe server from command line?
What is a trace file and how is it created in oracle?
How a tablespace is related to data files?
How would you begin to troubleshoot an ORA-3113 error?