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);


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM