sql - Select records from single column based on two conditions -


i might simple need solution.

i have column id (1 10) in table , want rows having id between 2 4 , 6 10, how retrieve rows? helpful.

select * mytable id between 2 , 4 or id between 6 , 10 

sql fiddle


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -