select MAX(comp_code+0) from t_base_company字符串 +0 把字符串转成数字 转载于:https://www.cnblogs.com/feifeicui/p/9726401.html