Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. SELECT col1 LIKE CONCAT(col2,"some_key%") as pivot1 ... others columns ...
  2. WHERE col1 LIKE CONCAT(col2,"some_key%") = 1
  3.  
  4. SELECT 1 as pivot1, ...
  5. FROM ...
  6. WHERE col1 LIKE CONCAT(col2,"some_key%")
  7.  
  8. select sum(username like '%x') from t_users where username like '%x' or 1=1;
  9.  
  10. select sum(1) from t_users where username like '%x' or 1=1;
  11.  
  12. select sum(username like '%z') from t_users where username like '%z' ;
  13.  
  14. select sum(1) from t_users where username like '%z';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement