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
How do I add a database to sql?
What are analytic functions in sql?
Why we use joins in sql?
Is it possible to include an insert statement on the same table to which the trigger is assigned?
How run sql*plus commands that are stored in a local file?
What is scope of pl sql developer in future?
Does access use sql?
Differentiate between syntax and runtime errors.
what is union, minus and interact commands? : Sql dba
What is a ddl command?
What does count (*) mean in sql?
Can we perform dml on view?
What is the difference between inner join and left join?
What is an oracle stored procedure?
How do you write a complex sql query?