Jump to content

Count a phrase in SQL


melloorr

Recommended Posts

As a general rule, if you need to run a SELECT query to get data that you're going to use for something, and you also need the count, use mysql_num_rows(). If all you need is a count and no other data, use a SELECT COUNT() query.

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.