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
Can you upgrade sql express to full sql?
what is self join and what is the requirement of self join? : Sql dba
What is the difference between database trigger and stored procedure?
List out the acid properties and explain?
Explain unique key in sql.
Is there a pl/sql pragma similar to deterministic, but for the scope of one single sql select?
Can we call procedure in select statement?
Determine if oracle date is on a weekend?
What are stored procedures used for?
What are triggers in sql?
Write a sql query to find the names of employees that begin with ‘a’?
What is sql partition function?
what is a database? : Sql dba
What is the starting oracle error number?
Does oracle roll back the transaction on an error?