摘要: mysql中的条件语句主要有if 和case when。 IF(expr1,expr2,expr3):如果第一个条件为True,则返回第二个参数,否则返回第三个 select if(author='Felix', 'yes', 'no') as AU from test; 用case when实现i 阅读全文
posted @ 2021-01-02 10:25 caibaotimes 阅读(536) 评论(0) 推荐(0) 编辑