官方文檔 :There is a limit of (2^32)^2 (1.844E+19) rows in a MyISAM table
這是MyISAM的理論上限,實踐上是達不到的。
實際行數上限還受myisam_data_pointer_size
限制,64位的mysql的myisam_data_pointer_size
通常是6,即48位,行數是2^48 - 1 = 281474976710655。
第二個上限是表的存儲空間大小限制(Storage limits):256TB。
所以只要知道最小一行需要的空間,就能求出最多能存的記錄數。