摘要: case 1、例: select u.uid,case when u.birthday>='1990' and u.birthday<='1999' then '90 后' when u.birthday>='1980' and u.birthday<='1989' then '80 后' when 阅读全文
posted @ 2020-03-19 23:58 抽象Java 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1、concat() 1.1、concat(str1, str2, ...) user表 id name 01 test 运行:select concat(id, ',', name) as info from user 结果 info 01,test 1.2、concat_ws(separator 阅读全文
posted @ 2020-03-19 22:05 抽象Java 阅读(191) 评论(0) 推荐(0) 编辑
摘要: scala语法 函数 (x: Int) => x + 1 方法1 def add(x: Int, y: Int): Int = x + y 运行 println(add(1, 2))#3 方法2 def addThenMultiply(x: Int, y: Int)(multiplier: Int) 阅读全文
posted @ 2020-03-19 16:38 抽象Java 阅读(84) 评论(0) 推荐(0) 编辑