1. Home
  2. Docs
  3. MySQL
  4. 操作语句

操作语句

SELECT Statement

示例

统计指定库中的各个表和索引的大小

SELECT CONCAT(table_schema,'.',table_name) AS 'Table Name', CONCAT(ROUND(table_rows/1000000,4),'M') AS 'Number of Rows', CONCAT(ROUND(data_length/(1024*1024*1024),4),'G') AS 'Data Size', CONCAT(ROUND(index_length/(1024*1024*1024),4),'G') AS 'Index Size', CONCAT(ROUND((data_length+index_length)/(1024*1024*1024),4),'G') AS'Total'FROM information_schema.TABLES WHERE table_schema LIKE 'example';

UPDATE Statement

示例

复制表中字段A到B中, 并做函数处理
update words set cc_word = crc32(word);

官方资料

SELECT Statement

UPDATE Statement

相关资料

查看mysql库大小,表大小,索引大小

Was this article helpful to you? Yes No

How can we help?