1、NVL函数与Coalesce差异
-- select nvl(null,8); -- 结果是 8
-- select nvl('',7); -- 结果是""
-- select coalesce(null,null,9); -- 结果是 9
-- select coalesce("",null,9); -- 结果是 ""

1.2、
2、hive 库、表、数据的增删改查语法
3、insert into 与 insert overwrite 在hivesql中的用法
python
-- create table test_kuming_202311041520.students
-- ( id bigint, name string);
-- select * from test_kuming_202311041520.students;
-- drop table test_kuming_202311041520.students;
-- insert into test_kuming_202311041520.students (id,name) values(1,"yyyy")
---- insert into 加不加表名,都可以。
-- insert into test_kuming_202311041520.students (id,name) values(12,"wwww")
-- insert into table test_kuming_202311041520.students (id,name) values(52,"9999")
---- overwrite 的错误用法
-- insert overwrite table test_kuming_202311041520.students (id,name) values(52,"9999") -- 这样操作是错误的;
-- overwrite 的正确用法
-- insert overwrite table test_kuming_202311041520.students
-- select * from test_kuming_202311041520.students where id = '1'
4、
5、
6、
7、