SQL---表内容查询
1、查询表的字段及字段类型
select column_name columnName, column_type columnType from information_schema.columns where table_name = '表名' and column_name = '字段名'
2、获取指定表的指定字段的内容的最大长度
select max(length('字段名')) from 表名
1、查询表的字段及字段类型
select column_name columnName, column_type columnType from information_schema.columns where table_name = '表名' and column_name = '字段名'
2、获取指定表的指定字段的内容的最大长度
select max(length('字段名')) from 表名