随笔分类 -  面试

摘要:1.用一条sql语句 select (case when a>b then a else b end ),(case when b>c then b esle c end) from 表名 或者使用 select if(a>b,a,b),if(b>c,b,c) from 表名 注意:数据库不同,可能 阅读全文
posted @ 2017-02-17 16:14 自由不过是一种漂泊 阅读(3235) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示