I\'m trying to find out if a row exists in a table. Using MySQL, is it better to do a query like this:
SELECT COUNT(*) AS total FROM table1 WHERE ...
COUNT(*) are optimized in MySQL, so the former query is likely to be faster, generally speaking.
COUNT(*)