Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the use of sqlerrd 3?

936


how can you create an empty table from an existing table? : Sql dba

1146


Under what condition it is possible to have a page level lock and row lock at the same time for a query? : Transact sql

975


Write a sql query to get the third highest salary of an employee from employee_table?

1064


What are the steps for performance tuning.

1324


What is trigger types in sql?

981


What is spool?

1045


what is the difference between group by and order by in sql? : Sql dba

1113


What is a scalar value in sql?

1065


What is a call statement? Explain with an example.

996


How do you identify a primary key?

1057


What are the basic techniques of indexing?

1056


What action do you have to perform before retrieving data from the next result set of a stored procedure ?

2564


In pl/sql, what is bulk binding, and when/how would it help performance?

985


What is pl sql quora?

1132