zoukankan
html css js c++ java
CASE WHEN THEN 小结
方法1:
CASE WHEN 条件 THEN 值1 ELSE 值2 END
eg. CASE WHEN 1<3 THEN 1 ELSE 0 END
结果:(1<3)为TRUE,值为0
方法2:
CASE 变量 WHEN 值 THEN 值1 ELSE 值2 END
eg. CASE @a WHEN 1 THEN 1 ELSE 0 END
结果:@a=1, 值为1;@a!=1, 值为0;
注:值1、值2的类型不限
查看全文
相关阅读:
JQuery 图片轮播
js版的虚线框
折叠菜单,选择下拉(手风琴)
logstash的index值可以为中文
假如正则从来没来过,我们该如何去匹配一个字符串?
深度解析javascript中的浅复制和深复制
笔试题
前端笔试题总结---持续更新
清除浮动
一步一步的理解闭包
原文地址:https://www.cnblogs.com/xcsn/p/SQL_CASE.html
最新文章
TensorFlow-相关 API(学习笔记 )
Ubantu搭建FTP
CentsOS7无网情况下安装mysql5.7
CentOS 7 yum 安装 MySQL5.7
LIUNX-Centos 7 编译GDAL
开发常用网站
Python一些方法的用法集锦
机器学习-聚类算法2
tomcat发布项目没有classes的编译文件
ajax用法
热门文章
乱码问题
EasyUI combobox 三级联动
js对数组的操作
linux下定时执行任务
JQuery中的$.ajax()
kindeditor 引用js架包问题
mysql sql语句大全
mysql中将多行数据合并成一行数据
MYSQL中日期与字符串间的相互转换
Java数字格式化输出时前面补0
Copyright © 2011-2022 走看看