Guest User

Untitled

a guest
Jun 17th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. SELECT * FROM table_name
  2. WHERE column_name BETWEEN 10 AND 20;
  3.  
  4. SELECT job FROM mytable WHERE id BETWEEN 10 AND 15
  5. Note that BETWEEN is inclusive, and will include items with both id 10 and 15.
  6.  
  7. If you do not want inclusion, you'll have to fall back to using the > and < operators.
  8.  
  9. SELECT job FROM mytable WHERE id > 10 AND id < 15
Add Comment
Please, Sign In to add comment