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
Do prepared statements prevent sql injection?
How is use pl and sql?
how to install mysql? : Sql dba
What is the use of count (*) in sql?
What is primary key and foreign key?
Are stored procedures compiled?
What is raid? How does it help storage of databases?
What is rtm stands for?
What is the syntax to add a record to a table?
Does asenumerable execute the query?
what is msql? : Sql dba
What is nvl?
What is mutating error?
How to Declare Fixed Length String Value In PL SQL
what are different types of collation sensitivity? : Sql dba