Jump to content

Is it possible...


roopurt18

Recommended Posts

I'd like to do something like:

 

SELECT 'foo' AS bar From some_table

 

But have a specific number of rows return, even though they'd all be identical.  If I want 4 rows, I can attach a 'LIMIT 4' on the end of the query, but the table has to have at least 4 rows in it; what can I do if I'm not sure the table has that many rows?

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/64716-is-it-possible/
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.