Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何选择 mysql 表的校验和哈希以及行数?
select table_checksum,count(*) from activity
我收到以下异常:
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 TABLE不能直接用在SELECT子句中。您必须单独调用它: CHECKSUM TABLE activity您会得到两列,表名 ( TABLE) 和校验和 ( CHECKSUM)。
CHECKSUM TABLE
SELECT
CHECKSUM TABLE activity
TABLE
CHECKSUM