有趣的sql语句 标签: sql语句 2007-03-13 19:15
给定一个表:
Test(nun INT(4)),
用一条sql语句返回num最大值,不用许使用max,min等。
实现:
select distinct num from Test
where num not in
(select L.num from Testas L,Testas G
where where L.num 小于 G.num
order by L.num);
原文地址:http://dododododo.blog.sohu.com/37555960.html