sql语句中,数字的最大值用什么符号表示,如select * from t1 where aa>100 and aa<最大值,这个最大值用什么表示呢? select * from t1 where aa>100 這樣就默認取得最大 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from t1 where aa>all (select aa from t1 where aa>100 ) --小于啊。select * from t1 where aa<all (select aa from t1 where aa>100 ) 你们不明我的意思,select * from t1 where aa>100 and aa<@maxtt @maxtt是个参数来的,当对应的edit1.text为空时,@maxtt参数就为最大数,如何表示数值的最大值? declare @m intselect @m=max(aa) from t1select * from t1 where aa>100 and a<@mGo /*@maxtt是个参数来的,当对应的edit1.text为空时,@maxtt参数就为最大数,如何表示数值的最大值?*/无法理解楼主这句话的意思啊是不是这样:select * from t1 where aa>100 and aa not in(select max(aa)from t1) 请参考: select * from t1 where aa>100 and aa<(select max(aa) from t1) 模版表定义触发器? 我在数据库中执行了update语句 能撤销么? 看看这SQL 语句如何写? 查询 sql 语句问题 求一统计SQL语句. 一个小有难度的SQL 给表填加一个属性 ###如何实现输入头字母就可查到相应中文名,如输入WXB就可查询到韦小宝?### 从sql 7.0 直接升级到2000后,DTS包总是莫名其妙的出错 如何把ORACLE数据库中的数据导到SQL数据库中 SQL备份问题,在线提问 关于方差的一个算法 请高手指点
*
from
t1
where
aa>all
(select
aa
from
t1
where
aa>100
)
*
from
t1
where
aa<all
(select
aa
from
t1
where
aa>100
)
select @m=max(aa) from t1
select * from t1 where aa>100 and a<@m
Go
@maxtt是个参数来的,当对应的edit1.text为空时,@maxtt参数就为最大数,如何表示数值的最大值?
*/无法理解楼主这句话的意思啊是不是这样:
select * from t1 where aa>100 and aa not in(select max(aa)from t1)
select * from t1 where aa>100 and aa<(select max(aa) from t1)