问题描述
现有一个sql语句:select * from mytable where status = 'Prepare' and desc的值最大。这个怎么sql语句怎么书写呢? 问题补充:asyty 写道
解决方案
select * from mytable where status = 'Prepare' and desc = (select max(desc) from mytable);
时间: 2024-10-01 11:35:34