摘要: date_format( time, '%Y-%m-%d' ) 阅读全文
posted @ 2020-02-18 16:24 嗝屁的博客 阅读(3915) 评论(0) 推荐(0)
摘要: select case status when 1 then '成功' when 2 then '失败' else '其他' end from user case后面紧跟要被作为判断的字段 when后面跟判断条件 then后面跟结果 else相当于default end是语句结束语 来源:https 阅读全文
posted @ 2020-02-18 16:23 嗝屁的博客 阅读(1312) 评论(0) 推荐(0)