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
Write a syntax for update query in oracle?
interview questions with answer for cts
What is an oracle transaction?
What privilege is needed for a user to create indexes in oracle?
What is redo log?
What is not equal to in oracle?
Why do we use coalesce function in oracle?
Is oracle a relational database?
What is the difference difference between $ORACLE_HOME and $ORACLE_BASE.
What is a subquery?
Explain an exception?
State and explain about oracle instance?
Can we convert a date to char in oracle and if so, what would be the syntax?
How to initialize variables with default values?
I am using an Oracle 8i Database my data contains Clob data. I am using toad version 7.6 i am able to get the data in toad but unable to extract the data in excel.when trying to extract the data into the excel the toad error says out of memory. Can any body please help me to extract the data through the same toad version. Thanks in advance