如何替换查询结果? select B1, case when B2>11 AND b2<21 then 131 else B2 end B2 from table 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select b1,b2 from table where B2<=11 AND b2>=21union allselect b1,131 from table where (B2>11 AND b2<21) set b2=131 select b2 from table whwere b2>11 or b2<21 select b1,b2 from table where B2<=11 AND b2>=21union allselect b1,131 from table where (B2>11 AND b2<21) 求insert update 和 delete 三个操作语句的所有用法 在数据库中查询一段时间内的数据,SQL语句怎么写? 拆解字符串后加[],再合并的问题 郁闷了!~~~~ 一条简单的SQL大家进来看下哦。。 求助!odbc驱动坏掉!数据库无法链接! 访问外网sql服务器,因为路由器开启病毒防御而不能访问的故障问题 触发器问题,帮帮忙 小白麻烦各位了 谢谢 -.-! 顶者有分 b/s c/s 结构,分别与客户端的机器陪只好与差有什么样的关系??? {请问这一句Oracle的SQL语句怎样改写为Sql Server的?} 如果我用VB编写DTS程序,不知道哪里有好一点的资料(中文的)
union all
select b1,131 from table where (B2>11 AND b2<21)
union all
select b1,131 from table where (B2>11 AND b2<21)