i want to display 1 to 10 numbers using one select statement.
Answers were Sorted based on User's Feedback
Answer / gangadhar
SQL> select *
2 from xmltable('for $i in 1 to 10 return $i');
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / hemant
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
/
| Is This Answer Correct ? | 6 Yes | 12 No |
What are sql procedures?
Can i possible to see Table Details ? Ex : Table Name Date Time User Emp May/18/2010 12:59pm Scott
How do you optimize SQL queries ?
6 Answers CarrizalSoft Technologies, Infosys, Oracle,
What is an alias command?
State the difference between implict and explict cursor's?
What are the types of subqueries?
How to export the table data (this table having 18 million records) to .csv file. Please tell me is there any faster way to export the data.
What is sql profiler in oracle?
type type_name is table of varchar2(30) index by binary_integer for the above type you have to create a identifier... like identifier_name type_name; for the above type you can use the below methods..like first , last , prior, next , delege..etc...like this.. if you create a cursor...like cursor cursor_name is select * from scott.emp; is there any methods like above to use prior, fist , last , next , trim ,etc...
What are the differences between implicit and explicit cursors?
Is sql a microsoft product?
What is nvl?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)