How can I get row count values in MySQL as @@ROWCOUNT does in mssql?
@@ROWCOUNT
Count the number of rows in a sub-query in the where clause. Then test if the total number of rows is greater than zero.
SELECT customerNumber, customerName, creditLimit FROM customers where (SELECT count(*) as tot FROM customers) > 0;