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 are the different ways to optimize a sql query?

950


How do you create a db file?

1020


What is difference between inner join and self join?

1090


can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba

1006


Which data type is a composite type?

993


what is a materialized view? : Sql dba

1068


What is embedded sql what are its advantages?

1045


What is difference between pl and sql?

1068


What is an inner join sql?

1037


Show how functions and procedures are called in a pl/sql block.

1133


Can a table contain multiple primary key’s?

1104


what is schema? : Sql dba

1052


Is sql low level language?

1024


What is rank function in sql?

1033


what is rdbms? : Sql dba

1018