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

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - On Gitbash - Bower : ENOGIT git is not installed or not in the PATH -