做mysql数据库字典,查出表的表名,字段名,数据类型,注释,默认值
单独查询某个表的注释、字段 selectTABLE_NAME AS ‘表名’,COLUMN_NAME AS ‘字段名’,COLUMN_TYPE AS ‘数据类型’,co...
单独查询某个表的注释、字段 selectTABLE_NAME AS ‘表名’,COLUMN_NAME AS ‘字段名’,COLUMN_TYPE AS ‘数据类型’,co...
mysql查询数据库大小: select concat(round(sum(DATA_LENGTH/1024/1024),2),’MB’) as data from information_schema.TABLE...
折腾了半天才发现原来是在连接mysql时没有”-u”参数导致的 D:\Program Files\MySQL\MySQL Server 5.6\bin>mysql -uroot 重新连接mysql 加上-u参数...
use information_schema; select concat(round(sum(data_length/1024/1024),2),’MB’) as data from tables where TA...