官术网_书友最值得收藏!

INSERT statement syntax

The syntax of Hive's INSERT statement is as follows:

-- append new rows to tablename1
INSERT INTO TABLE tablename1 select_statement1 FROM from_statement; 

-- replace contents of tablename1
INSERT OVERWRITE TABLE tablename1 select_statement1 FROM from_statement; 

-- more complex example using WITH clause
WITH tablename1 AS (select_statement1 FROM from_statement) INSERT [OVERWRITE/INTO] TABLE tablename2 select_statement2 FROM tablename1;
主站蜘蛛池模板: 江津市| 浙江省| 巩义市| 巴林左旗| 攀枝花市| 宁蒗| 沁阳市| 江华| 永川市| 达州市| 湟中县| 鹤庆县| 关岭| 苗栗市| 杂多县| 五台县| 贵定县| 澄江县| 永昌县| 海原县| 高青县| 南阳市| 荔浦县| 广汉市| 田阳县| 昌图县| 渭源县| 天全县| 翁牛特旗| 万源市| 竹溪县| 赣州市| 四平市| 方山县| 洪洞县| 湄潭县| 太湖县| 民丰县| 五寨县| 五大连池市| 读书|