SHARE
TWEET

Untitled

a guest Feb 21st, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT '10-5' REGEXP '10-5' as temp;
  2. SELECT '10/5' REGEXP '10/5' as temp;
  3. SELECT '1*5' REGEXP '1*5' as temp;
  4.    
  5. SELECT '10+5' REGEXP '10+5' as temp;
  6. SELECT '10*5' REGEXP '10*5' as temp;
  7.    
  8. SELECT '10+5' REGEXP '10\+5' as temp;
  9. SELECT '10*5' REGEXP '10\*5' as temp;
  10.    
  11. SELECT '1*5' REGEXP '1*5' as temp;
  12.    
  13. SELECT '10*5' REGEXP '10*5' as temp;
  14.    
  15. A REGEXP pattern match succeeds if the pattern matches anywhere in the value being tested. (This differs from a LIKE pattern match, which succeeds only if the pattern matches the entire value.)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top