i want to display 1 to 10 numbers using one select statement.
Answer Posted / sumit
declare
abc varchar2(500) ;
begin
select 1||chr(0)||2||chr(0)||3 ..... into
abc from dual;
dbms_output.put_line(abc);
end;
cannot use chr(10) to take columns in sql.
way is to use rownum,row_number or any psuedo column like
sequence
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the use of count (*) in sql?
How does one use sql*loader to load images, sound clips and documents? : aql loader
Is sql low level language?
How to run sql*plus commands in sql developer?
What is difference between pl and sql?
What is Materialized View? In What Scenario we Use Materialized View?
What is the maximum number of columns in sql table?
How do you remove duplicate records from a table?
Write a sql query to find the names of employees that begin with ‘a’?
What is form and report?
mention if it is possible to import data directly from t-sql commands without using sql server integration services? If yes, what are the commands? : Transact sql
Explain polymorphism in pl/sql.
Which type of cursor is used to execute the dml statement?
What is the difference between union and union all command?
Why does sql need a server?