1.内置函数
1. show functions
查看所有的函数

2. desc function 函数名

如上图,这个只是简单的函数描述,并没使用的例子,想要example,用下边的语句
3. desc function extended 函数名

2.函数查看
1. current_date()

2. current_timestamp()

3. unix_timestamp()
#此函数参数为空时,被标记为过时,用上边的current_timestamp()函数
4. from_unixtime()

5. to_date(expr)

6. year(date)

7. hour(date)、year(date)、weekofyear(date)

8. lpad()

9. regexp_replace

10. concat

11. concat_ws #连接的时候指定连接符

12 cast


13. json_tuple


14. parse_url_tuple

15. case …when

下图为表的原始数据

16.case…when的另一种写法

17. if

18. 综合使用
下图为原始数据

如下对上步的原始数据进行解析

1341

被折叠的 条评论
为什么被折叠?



