- 35
- 0
- 约1.02万字
- 约 18页
- 2017-06-05 发布于河南
- 举报
case-when用法(国外英文资料)
case-when用法(国外英文资料)
The use of Case in SQL
Case has two formats. Simple Case functions and Case search functions.
Simple Case function
CASE sex
WHEN 1 THEN man
WHEN two THEN THEN
ELSE END
-- Case search function
CASE WHEN sex = 1 THEN man
WHEN sex = 2 THEN woman
ELSE END
In both ways, you can achieve the same functionality. The simple Case function is relatively simple to write, but there are limitations in terms of functionality compared to the Case search function, such as writing judgment.
There is another issue that needs to be noted, and the Case function returns only the first qualifyin
您可能关注的文档
- 2013年3月雅思口语topic合并(国外英文资料).doc
- 2014年周口市专业技术人员创新能力与提高试题及答案(国外英文资料).doc
- 2014年公需科目考试-4(国外英文资料).doc
- 2014年小学一年级语文上册教学工作计划(国外英文资料).doc
- 2014年度中小学教师中高级职称网络考试(国外英文资料).doc
- 2014山东会计从业资格继续教育 网上培训考试题目答案---会计准则(国外英文资料).doc
- 2014年春季一年级下册数学期末试卷分析(国外英文资料).doc
- 2014年专技人员公需科目培训(初级)考试(国外英文资料).doc
- 2014年普通高等学校招生全国统一考试理科综合化学试题(新课标1卷)(国外英文资料).doc
- 2014总结(国外英文资料).doc
原创力文档

文档评论(0)