select jobname ,length(jobname) from bd_jobbasfil where length(jobname) in (select max(length(jobname))from bd_jobbasfil)
不需要什么复杂的sql。
但是不能这样写 select jobname from bd_jobbasfil where length(jobname) =max(length(jobname) )
select jobname ,length(jobname) from bd_jobbasfil where length(jobname) in (select max(length(jobname))from bd_jobbasfil)
不需要什么复杂的sql。
但是不能这样写 select jobname from bd_jobbasfil where length(jobname) =max(length(jobname) )
转载于:https://www.cnblogs.com/sumsen/archive/2012/05/29/2524777.html