惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
Microsoft Security Blog
Microsoft Security Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
V
Visual Studio Blog
宝玉的分享
宝玉的分享
IT之家
IT之家
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
I
InfoQ
B
Blog RSS Feed
T
Threatpost
博客园_首页
M
MIT News - Artificial intelligence
Spread Privacy
Spread Privacy
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Know Your Adversary
Know Your Adversary
U
Unit 42
Engineering at Meta
Engineering at Meta
C
Cyber Attacks, Cyber Crime and Cyber Security
月光博客
月光博客
Scott Helme
Scott Helme
T
Tor Project blog
有赞技术团队
有赞技术团队
AWS News Blog
AWS News Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Last Week in AI
Last Week in AI
S
Schneier on Security
Vercel News
Vercel News
博客园 - Franky
C
Cybersecurity and Infrastructure Security Agency CISA
L
LINUX DO - 热门话题
NISL@THU
NISL@THU
L
LangChain Blog
爱范儿
爱范儿
Google DeepMind News
Google DeepMind News
The GitHub Blog
The GitHub Blog
雷峰网
雷峰网
Latest news
Latest news
C
CXSECURITY Database RSS Feed - CXSecurity.com
Hugging Face - Blog
Hugging Face - Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
G
GRAHAM CLULEY
S
Security Affairs
A
About on SuperTechFans
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
大猫的无限游戏
大猫的无限游戏
W
WeLiveSecurity
Cisco Talos Blog
Cisco Talos Blog
罗磊的独立博客

博客园 - missthe

百度封杀淘客网站说明用户体验的重要性 记录sql语句一二 sql 将查询结果保存为新表 ASP模板引擎之一 — asptemplate - missthe 比较实用的两种ASP模板引擎 fso文件的一些属性 用正则把英文双引号变成中文双引号 - missthe - 博客园 用split(str, chr(13)&chr(10))分割textbox当中的多行内容 汉字转换成拼音的代码(JS版) js参数使用时常犯的一个低级错误 JS判断点击行为而显示相应状态 获取某月天数的函数 JS控制文本框输入 什么是类,一个最最简单的类 汉字转换成拼音的代码(asp版) 获取当前浏览器地址的函数 过滤超链接的正则表达式函数 一个简单好用的UBB编辑器 SQL语句:那样写还不如这样写
sql语句中遇到“被零除错误”提示的解决方法
missthe · 2009-01-13 · via 博客园 - missthe

 select a/b from table

以上语句当中,如果b的值非零,那么,运行会正常。

如果b的值是零。那么运行时就会报错:“被零除错误”。

通过修改成以下可解决此问题!

select a/(case when b=0 then 1 else b end) from table

posted @ 2009-01-13 21:58  missthe  阅读(8389)  评论(1)    收藏  举报

刷新页面返回顶部