How do I select a checksum hash of a mysql table along with a row count?
select table_checksum,count(*) from activity
I am getting the following exception:
12:39:33 select table_checksum, count(*) from activity LIMIT 0, 1000
Error Code: 1054. Unknown column ‘table_checksum’ in ‘field
list’ 0.031 sec
CHECKSUM TABLEcan’t be used directly in aSELECTclause.You have to call it separately:
CHECKSUM TABLE activityand you get two columns, table name (TABLE) and checksum (CHECKSUM).