ex. one table is having 1 column with 10 records ,
then how to display all the values in row wise ?

Answer Posted / ruchi varma

it will need a cursor.

begin
for cur1 in (select a from Name) loop
dbms_output.put(cur1.a);
end loop;
end;

dbms_output.put -> displays a chr without putting a new line

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between inner join vs where ?

608


Can group functions be used in the order by clause in oracle?

580


What is the fastest query method to fetch data from the table?

863


Describe the types of sub query?

553


What is dynamic proxy?

554






What are the differences between number and binary_float in oracle?

570


How do I reset a sequence in oracle?

596


How are extents allocated to a segment?

578


What is ordinary table in oracle?

652


What is pragma autonomous transaction in oracle?

516


Differentiate between translate and replace?

629


Other than making use of the statspack utility, what would you check when you are monitoring or running a health check on an Oracle 8i or 9i database?

1513


How to pass parameters to procedures in oracle?

570


What are the types of partitions in oracle?

541


How to write a query with a left outer join in oracle?

605