Use SELECT in with count(*)

SELECT count(*) from YOUR_TABLE 


Mikhail Berman

-----Original Message-----
From: Dotan Cohen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 06, 2006 3:37 PM
To: MySQL General
Subject: How many records in table?

What's a quick query to determine how many records a given table
contains? I don't think that a SELECT query is appropriate, as I don't
intend on doing anything with the data selected. Note that I'm
interfacing with MySQL via php, if that matters. Thanks.

Dotan Cohen

http://what-is-what.com/what_is/copyleft.html
http://lyricslist.com/

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to