|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Need to write more efficient syntax
Is there a way so I could rewrite the following query in a more efficient way that does not use "OR" or "="?
SELECT * FROM table1 WHERE X=1 OR X=2 OR X=5 OR X=8 OR X=10; Thanks. |
|
#2
|
|||
|
|||
|
Code:
SELECT * FROM table1 WHERE X IN (1, 2, 5, 8, 10); |
|
#3
|
|||
|
|||
|
Thanks again.
|
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > Need to write more efficient syntax |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|