首先,查找某字段的最大值
select max(weight) from apple;
接着,根据最大值,查找其所在行
select * from apple where weight =7888;
合并在一起就是
select * from apple where weight = (select max(weight) from apple);
首先,查找某字段的最大值
select max(weight) from apple;
接着,根据最大值,查找其所在行
select * from apple where weight =7888;
合并在一起就是
select * from apple where weight = (select max(weight) from apple);
转载于:https://my.oschina.net/u/3387320/blog/3079190