会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
benkio98
导航
博客园
首页
新随笔
联系
订阅
管理
公告
2019年10月16日
数据库力扣题交换工资
摘要: 分析:交换属性值可以得出case语句,case语句一定要有end结束标志。也可以用if(sex='m','f','m') 答案: update salary set sex=case sex when 'f' then 'm' else 'f' end;
阅读全文
posted @ 2019-10-16 14:08 笙箫壹壹贰捌
阅读(155)
评论(0)
推荐(0)
数据库力扣题有趣的电影
摘要: 分析:简单查询。由条件影片描述为非无聊可得出使用not like语句。由条件id为奇数可得出id&1或id%2,由条件结果按等级排列可得出order by语句 答案:select * from cinema where cinema.description not like 'boring' and
阅读全文
posted @ 2019-10-16 13:56 笙箫壹壹贰捌
阅读(147)
评论(0)
推荐(0)