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
Why is pl sql used?
Can we use two order by clause in query?
What is %type in sql?
How to call a javascript function from pl sql?
How many disk partitions should I have?
how is exception handling handled in mysql? : Sql dba
how to install mysql? : Sql dba
What is gpt format?
What is cursor and its types?
What is the use of sql trace?
Why do we use cursors?
What is percent sign in sql?
Which table is left in left join?
How does a trigger work?
which types of join is used in sql widely? : Sql dba