mysql查询某一列的数据最大字节
程序员文章站
2022-05-18 21:53:41
语法:select 列名, length(列名) from 表名where length(列名) = ( select max(length(列名)) from 表名); 实例:select project_num, length(project_num) from project_infor_ta ......
语法:
select 列名, length(列名)
from 表名
where
length(列名) = ( select max(length(列名)) from 表名);
实例:
select project_num, length(project_num)
from project_infor_table
where
length(project_num) = ( select max(length(project_num)) from project_infor_table);