SQL语句,谢谢 想问一下怎么处理SQL语句中除0啊,想用SQL语句来,不是程序中的异常`高手指教就比如select a/d from table_a 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select a/d from table_awhere d<>0 --分开来处理就好啦select a/d from table_a where d<>0union all select 0 from table_a where d=0 或者select case d when 0 then 0 else a/d end from table_a 不好意思了,刚才出去了,我意思是比哪表中有两个字段 a b想要select a/b from table 如果b=0的话,我就给他从新给一个字的话,要怎么写SQL啊 sql2000存储过程报包含的前缀数目超过了最大值。最大值为 3 SQL2005中怎样判断一组数字是否为连续数? 安装SQL server2005时出现的问题 求SQL语句 请问一个选择的问题 mssql莫名挂起的问题 vb 实时错误 -2147219700(80040e14) update 语句错误 这样修改表字段类型怎么不对呀?请各位高手帮帮忙! SQL查询问题 100分!谁对sqlserver6.5熟悉,有紧急问题!!解决后另外有奖 刚才发的贴子打不开,请教一条sql语句 在存储过程中给参数赋默认值的时候使用getdate()总是提示出错,是怎么回事?
from table_a
where d<>0
select a/d from table_a where d<>0
union all
select 0 from table_a where d=0
select case d when 0 then 0 else a/d end from table_a
想要select a/b from table
如果b=0的话,我就给他从新给一个字的话,要怎么写SQL啊