Guest User

Untitled

a guest
Jun 20th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. SELECT Id, Name FROM my_table WHERE Name LIKE '%prashant%' LIMIT 0, 10;
  2.  
  3. SELECT SQL_CALC_FOUND_ROWS
  4. Id, Name
  5. FROM my_table
  6. WHERE
  7. Name LIKE '%prashant%'
  8. LIMIT 0, 10;
  9.  
  10. # Find total rows
  11. SELECT FOUND_ROWS();
Add Comment
Please, Sign In to add comment