Update Hive常用DML操作.md
This commit is contained in:
parent
2c37679b55
commit
aaff08d791
@ -75,8 +75,8 @@ LOAD DATA INPATH "hdfs://hadoop001:8020/mydir/emp.txt" OVERWRITE INTO TABLE emp
|
||||
### 2.1 语法
|
||||
|
||||
```sql
|
||||
INSERT OVERWRITE TABLE tablename1 [PARTITION (partcol1=val1, partcol2=val2 ...)
|
||||
[IF NOT EXISTS]] select_statement1 FROM from_statement;
|
||||
INSERT OVERWRITE TABLE tablename1 [PARTITION (partcol1=val1, partcol2=val2 ...) [IF NOT EXISTS]]
|
||||
select_statement1 FROM from_statement;
|
||||
|
||||
INSERT INTO TABLE tablename1 [PARTITION (partcol1=val1, partcol2=val2 ...)]
|
||||
select_statement1 FROM from_statement;
|
||||
@ -243,7 +243,6 @@ DELETE FROM tablename [WHERE expression]
|
||||
+ 不支持LOAD DATA ...语句。
|
||||
|
||||
```sql
|
||||
-- 建表语句
|
||||
CREATE TABLE emp_ts(
|
||||
empno int,
|
||||
ename String
|
||||
|
Loading…
x
Reference in New Issue
Block a user