当前位置: 移动技术网 > IT编程>数据库>Mysql > mysql查询某一列的数据最大字节

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

2019年08月23日  | 移动技术网IT编程  | 我要评论
语法: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);

如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网