mysql查询某一列的数据最大字节

语法:
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);

posted @ 2019-08-23 09:55  一切简单化  阅读(2132)  评论(0编辑  收藏  举报