i want to display 1 to 10 numbers using one select statement.
Answer Posted / kriti sinha
For in 10 rows in a single column
select level from dual connect by level<=10
for 10 numbers in a single column
select 1||chr(10)||2||chr(10)||3||chr(10)||4||chr(10)
||5||chr(10)||6||chr(10)||7||chr(10)||8||chr(10)||9||chr(10)
||10 from dual;
For 10 rows in 10 columns
select 1,2,3,4,5,6,7,8,9,10 from dual;
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is sql dialect?
what are the different type of normalization? : Sql dba
Explain the components of sql?
What are the benefits of pl/sql packages?
Why do we use view in sql?
What is mdf ldf and ndf?
How does cross join work in sql?
What is clause?
What is sql entity?
What is mutating trigger?
How do you get column names only for a table (sql server)?
Is sql microsoft?
Which is better trigger or stored procedure?
How many disk partitions should I have?
What is an inner join sql?