MySQL优化—查看字段长度的代码实例:CREATE TABLE tmp13(vb VARBINARY(10)) INSERT INTO tmp13 (vb) VALUES(12) SELECT LENGTH(vb) FROM tmp13 INSERT INTO tmp13 (vb) VALUES(1212)