Jump to content

MYSQL LIMIT


mds1256

Recommended Posts

Hi

 

is there a way to use the LIMIT keyword but return all rows.

 

I am wanting to build a dynamic stored procedure that allows you to pass in a parameter to limit rows if you want to.

 

e.g.

 

select * from users limit **            ----- where ** could be a number or all

 

I can get it to work with a number but If I want all rows what would I put in place of the **'s

Link to comment
https://forums.phpfreaks.com/topic/266706-mysql-limit/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.