samedi 29 juillet 2017

Mysql - Get count of rows from table with offset

I am working on laravel project. I want to get total number of rows from table with offset.Like how many records are there after skipping first 10 records. I am trying to get this by,

$count = Post::skip(10)->count();

But it gives me mysql syntax error. It would be nice if you can even help me with raw mysql query. Thanks!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire