会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
WhiteMouse
CnBlogs
Home
New Post
Contact
Admin
Subscription
2019年6月4日
sql控制流if()、case when then
tb_user: 1、if (expr1,expr2,expr3) #如果expr1成立,则返回expr2,否则返回expr3示例:select name, if (sex=1,'男','女') sex from tb_user #如果sex是1,sex查询结果返回‘男’,否则返回‘女’ 2、ifn
Read More
posted @ 2019-06-04 23:01 WhiteMouse
Views(3488)
Comments(0)
Diggs(0)
公告