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 bcp? When does it used? : Sql dba
how many sql ddl commands are supported by 'mysql'? : Sql dba
what are the properties and different types of sub-queries? : Sql dba
what is the use of friend function? : Sql dba
What version is sql?
Why do we use sql constraints? Which constraints we can use while creating database in sql?
Does user triggers have entry for trigger with compilation errors?
Is microsoft sql free?
Is sql pronounced sequel or sql?
What is a behavioral trigger?
How many sql databases can you have on one server?
How do you update a sql procedure?
what is a unique key ? : Sql dba
What are the steps for performance tuning.
Does execute immediate commit?