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