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 sqlerrd 3?
how can you create an empty table from an existing table? : Sql dba
Under what condition it is possible to have a page level lock and row lock at the same time for a query? : Transact sql
Write a sql query to get the third highest salary of an employee from employee_table?
What are the steps for performance tuning.
What is trigger types in sql?
What is spool?
what is the difference between group by and order by in sql? : Sql dba
What is a scalar value in sql?
What is a call statement? Explain with an example.
How do you identify a primary key?
What are the basic techniques of indexing?
What action do you have to perform before retrieving data from the next result set of a stored procedure ?
In pl/sql, what is bulk binding, and when/how would it help performance?
What is pl sql quora?