------------------------------MAX select max(1,2)是错误的,呵呵。看帮助也没有明白,求正确写法! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 declare @t table(a int)insert @t values(1)insert @t values(2)select max(a) from @t select case when 1>2 then 1 else 2 end as max12 declare @t table(col int)insert @t select 1insert @t select 2select max(col) from @t max() 只需要一個參數, 你卻給了兩個 select case when 1>2 then 1 else 2 end as max12呵呵 应该这么写 我的头一次 用这个 函数 ,和自己想的不一样。谢谢!! 存储过程能执行但不能读取数据(急)? 如何实现数据库分类输出的功能 create trigger for delete 好吧,再发一篇帖子,为了给主任交差....(40分) excel 导入到 sql 怪问题 (老大些,帮帮我) 有没有必要这样优化?? 这个查询如何设计 请大家帮忙 再次求字段为ntext类型的sql精确查询语句 查询和统计问题 求一个仓库库存结余数统计的SQL??? 以下两个SQL语句哪个更符合SQL-92标准?
insert @t values(1)
insert @t values(2)
select max(a) from @t
declare @t table(col int)
insert @t select 1
insert @t select 2
select max(col) from @t
头一次 用这个 函数 ,和自己想的不一样。
谢谢!!