954,597 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

select from list of values (ie. select * from(1,2))

i'm trying to figure out how to write a query like the following, but in a way that works:

select * from (1,2)

or

select (1,2) ...

the result i'm aiming for is
1
2

can this be done?

scranton
Light Poster
40 posts since Aug 2009
Reputation Points: 10
Solved Threads: 1
 

use the following

select level from dual connect by level<=2
debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

try selecting it from dual(dummy table) it will work..Was a good question..keep posting...

smokewire
Light Poster
29 posts since May 2010
Reputation Points: 10
Solved Threads: 1
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You