怎样写这条SQL语句 col3为零时如何处理?你得写明呀 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update tab1 set col1 = case col3 when 0 then col1 else col2/col3 end 我指的是业务逻辑,你看下面的得对吗?update tab1 set col1 = case col3 when 0 then col2 else col2/col3 end set col1 =case col3 when 0 then null else col2/col3 end update tab1 set col1 = col2/case when col3=0 then 1 else col3 end update tab1 set col1 = case col3 when 0 then 1 else col2/col3 end SQL下一条记录的值减去上一条记录的值的问题? 定位删除?? 求数据库SQL 大量数据查询语句。 求一简单的SQL语句! 救命啊!手动备份数据库容量变2倍,变化的新数据无法显示。 sql查询as别名如何动态? 求一触发器 SqlServer中查询时,前面总会多出一列 求教一个简单的存储过程 SQL2008跨表模糊更新不成功 列的属性怎么修改? 紧急求教,sql server进行差异复制的最好办法是什么,
update tab1 set col1 = case col3 when 0 then col2 else col2/col3 end