Jump to content

Some database search tips


dhimok

Recommended Posts

If you only need to return X amount of results, always add this to the end of your SQL query:

 

LIMIT x

 

For example:

 

SELECT username FROM user_db WHERE name='Ted' LIMIT 5

 

That will work good too. You may also want to look up Pagination to limit the amount of results per page.

Good luck!

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.