Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. SELECT * FROM `myTable` WHERE `mov_id` LIKE '%1' OR `mov_id` LIKE '%2'
  2.  
  3. SELECT * FROM mytable
  4. WHERE (mov_id MOD 10) IN (1, 2)
  5.  
  6. SELECT * FROM mytable
  7. WHERE SUBSTRING(mov_id, -1) IN ('1', '2')
  8.  
  9. mov_id
  10.  
  11. Select feild1 from table where right(feild1,1) = x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement