Guest User

Untitled

a guest
Feb 21st, 2018
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. select id, firstname, lastname from users where firstname = 'john' and lastname != '';
  2.  
  3. select id, firstname, lastname from users where match('@firstname john @lastname !''');
  4.  
  5. +---------+------------------+----------+
  6. | id | firstname | lastname |
  7. +---------+------------------+----------+
  8. | 110809 | John | |
  9. | 313681 | John | |
  10. | 520045 | John | |
  11. | 554136 | John | |
  12.  
  13. select id, firstname, lastname from users where match('@firstname john')
Add Comment
Please, Sign In to add comment