CREATE TABLE `dim_nat_code`(
`nat_id` string COMMENT '编码',
`nat_name` string COMMENT '国家或地区')
COMMENT '国家或地区码表'
ROW FORMAT SERDE
'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
WITH SERDEPROPERTIES (
'field.delim'='\t',
'serialization.format'='\t')
STORED AS INPUTFORMAT
'org.apache.hadoop.mapred.TextInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
LOCATION
'hdfs://mycluster/warehouse/travel/ods/ODS_NAT_CODE'
TBLPROPERTIES (
'bucketing_version'='2',
'transient_lastDdlTime'='1630152666')
;
insert into dim_native_code (nat_id,nat_name) values (852, '中国香港')
;insert into dim_native_code (nat_id,nat_name) values (853, '中国澳门')
;insert into dim_native_code (nat_id,nat_name) values (886, '中国台湾')
;insert into dim_native_code (nat_id,nat_name) values (100, '美国')
;insert into dim_native_code (nat_id,nat_name) values (100, '加拿大')
;insert into dim_native_code (nat_id,nat_name) values (100, '圣基茨和尼维斯')
;insert into dim_native_code (nat_id,nat_name) values (100, '圣文森特')
;insert into dim_native_code (nat_id,nat_name) values (100, '特克斯和凯特斯群岛')
;insert into dim_native_code (nat_id,nat_name) values (100, '英属维尔京群岛')
;insert into dim_native_code (nat_id,nat_name) values (124, '巴巴多斯岛')
;insert into dim_native_code (nat_id,nat_name) values (126, '安圭拉岛')
;insert into dim_native_code (nat_id,nat_name) values (126, '安提瓜岛巴布达岛')
;insert into dim_native_code (nat_id,nat_name) values (134, '开曼群岛')
;insert into dim_native_code (nat_id,nat_name) values (147, '格林纳达')
;insert into dim_native_code (nat_id,nat_name) values (166, '蒙特塞拉特岛')
;insert into dim_native_code (nat_id,nat_name) values (167, '关岛')
;insert into dim_native_code (nat_id,nat_name) values (175, '圣卢西亚')
;insert into dim_native_code (nat_id,nat_name) values (180, '多米尼加共和国')
;insert into dim_native_code (nat_id,nat_name) values (186, '特立尼达和多巴哥'
;insert into dim_native_code (nat_id,nat_name) values (187, '牙买加')
;insert into dim_native_code (nat_id,nat_name) values (193, '波多黎各')
;insert into dim_native_code (nat_id,nat_name) values (20 , '埃及')
;insert into dim_native_code (nat_id,nat_name) values (212, '摩洛哥')
;insert into dim_native_code (nat_id,nat_name) values (213, '阿尔及利亚')
;insert into dim_native_code (nat_id,nat_name) values (216, '突尼斯')
;insert into dim_native_code (nat_id,nat_name) values (218, '利比亚')
;insert into dim_native_code (nat_id,nat_name) values (220, '冈比亚')
;insert into dim_native_code (nat_id,nat_name) values (221, '塞内加尔')
;insert into dim_native_code (nat_id,nat_name) values (222, '毛里塔尼亚')
;insert into dim_native_code (nat_id,nat_name) values (223, '马里')
;insert into dim_native_code (nat_id,nat_name) values (224, '几内亚')
;insert into dim_native_code (nat_id,nat_name) values (225, '科特迪瓦')
;insert into dim_native_code (nat_id,nat_name) values (226, '布基纳法索')
;insert into dim_native_code (nat_id,nat_name) values (227, '尼日尔')
;insert into dim_native_code (nat_id,nat_name) values (228, '多哥')
;insert into dim_native_code (nat_id,nat_name) values (229, '贝宁')
;insert into dim_native_code (nat_id,nat_name) values (230, '毛里求斯')
;insert into dim_native_code (nat_id,nat_name) values (231, '利比里亚')
;insert into dim_native_code (nat_id,nat_name) values (232, '塞拉利昂')
;insert into dim_native_code (nat_id,nat_name) values (233, '加纳')
;insert into dim_native_code (nat_id,nat_name) values (234, '尼日利亚')
;insert into dim_native_code (nat_id,nat_name) values (235, '乍得')
;insert into dim_native_code (nat_id,nat_name) values (236, '中非')
;insert into dim_native_code (nat_id,nat_name) values (237, '喀麦隆')
;insert into dim_native_code (nat_id,nat_name) values (238, '佛得角')
;insert into dim_native_code (nat_id,nat_name) values (242, '刚果')
;insert into dim_native_code (nat_id,nat_name) values (244, '安哥拉')
;insert into dim_native_code (nat_id,nat_name) values (245, '几内亚比绍')
;insert into dim_native_code (nat_id,nat_name) values (248, '塞舌尔')
;insert into dim_native_code (nat_id,nat_name) values (249, '苏丹')
;insert into dim_native_code (nat_id,nat_name) values (250, '卢旺达')
;insert into dim_native_code (nat_id,nat_name) values (251, '埃塞俄比亚')
;insert into dim_native_code (nat_id,nat_name) values (253, '吉布提')
;insert into dim_native_code (nat_id,nat_name) values (254, '肯尼亚')
;insert into dim_native_code (nat_id,nat_name) values (255, '坦桑尼亚')
;insert into dim_native_code (nat_id,nat_name) values (256, '乌干达')
;insert into dim_native_code (nat_id,nat_name) values (257, '布隆迪')
;insert into dim_native_code (nat_id,nat_name) values (258, '莫桑比克')
;insert into dim_native_code (nat_id,nat_name) values (260, '赞比亚')
;insert into dim_native_code (nat_id,nat_name) values (261, '马达加斯加')
;insert into dim_native_code (nat_id,nat_name) values (262, '留尼旺岛')
;insert into dim_native_code (nat_id,nat_name) values (263, '津巴布韦')
;insert into dim_native_code (nat_id,nat_name) values (265, '马拉维')
;insert into dim_native_code (nat_id,nat_name) values (266, '莱索托')
;insert into dim_native_code (nat_id,nat_name) values (267, '博茨瓦纳')
;insert into dim_native_code (nat_id,nat_name) values (269, '科摩罗')
;insert into dim_native_code (nat_id,nat_name) values (27 , '南非')
;insert into dim_native_code (nat_id,nat_name) values (298, '法罗群岛')
;insert into dim_native_code (nat_id,nat_name) values (299, '格陵兰岛')
;insert into dim_native_code (nat_id,nat_name) values (30 , '希腊')
;insert into dim_native_code (nat_id,nat_name) values (31 , '荷兰')
;insert into dim_native_code (nat_id,nat_name) values (32 , '比利时')
;insert into dim_native_code (nat_id,nat_name) values (33 , '法属安的列斯群岛')
;insert into dim_native_code (nat_id,nat_name) values (34 , '西班牙')
;insert into dim_native_code (nat_id,nat_name) values (350, '直布罗陀')
;insert into dim_native_code (nat_id,nat_name) values (351, '葡萄牙')
;insert into dim_native_code (nat_id,nat_name) values (352, '卢森堡')
;insert into dim_native_code (nat_id,nat_name) values (353, '爱尔兰')
;insert into dim_native_code (nat_id,nat_name) values (354, '冰岛')
;insert into dim_native_code (nat_id,nat_name) values (355, '阿尔巴尼亚')
;insert into dim_native_code (nat_id,nat_name) values (356, '马耳他')
;insert into dim_native_code (nat_id,nat_name) values (357, '塞浦路斯')
;insert into dim_native_code (nat_id,nat_name) values (358, '芬兰')
;insert into dim_native_code (nat_id,nat_name) values (359, '保加利亚')
;insert into dim_native_code (nat_id,nat_name) values (36 , '匈牙利')
;insert into dim_native_code (nat_id,nat_name) values (370, '立陶宛')
;insert into dim_native_code (nat_id,nat_name) values (371, '拉脱维亚')
;insert into dim_native_code (nat_id,nat_name) values (372, '爱沙尼亚')
;insert into dim_native_code (nat_id,nat_name) values (373, '摩尔多瓦')
;insert into dim_native_code (nat_id,nat_name) values (374, '亚美尼亚')
;insert into dim_native_code (nat_id,nat_name) values (375, '白俄罗斯')
;insert into dim_native_code (nat_id,nat_name) values (376, '安道尔')
;insert into dim_native_code (nat_id,nat_name) values (377, '摩纳哥')
;insert into dim_native_code (nat_id,nat_name) values (378, '圣马力诺')
;insert into dim_native_code (nat_id,nat_name) values (387, '波斯尼亚和黑塞哥维那')
;insert into dim_native_code (nat_id,nat_name) values (389, '马其顿')
;insert into dim_native_code (nat_id,nat_name) values (39 , '意大利')
;insert into dim_native_code (nat_id,nat_name) values (40 , '罗马尼亚')
;insert into dim_native_code (nat_id,nat_name) values (41 , '瑞士')
;insert into dim_native_code (nat_id,nat_name) values (420, '捷克')
;insert into dim_native_code (nat_id,nat_name) values (421, '斯洛伐克')
;insert into dim_native_code (nat_id,nat_name) values (423, '列支敦士登')
;insert into dim_native_code (nat_id,nat_name) values (43 , '奥地利')
;insert into dim_native_code (nat_id,nat_name) values (44 , '英国')
;insert into dim_native_code (nat_id,nat_name) values (45 , '丹麦')
;insert into dim_native_code (nat_id,nat_name) values (46 , '瑞典')
;insert into dim_native_code (nat_id,nat_name) values (47 , '挪威')
;insert into dim_native_code (nat_id,nat_name) values (48 , '波兰')
;insert into dim_native_code (nat_id,nat_name) values (49 , '德国')
;insert into dim_native_code (nat_id,nat_name) values (501, '伯利兹')
;insert into dim_native_code (nat_id,nat_name) values (502, '危地马拉')
;insert into dim_native_code (nat_id,nat_name) values (503, '萨尔瓦多')
;insert into dim_native_code (nat_id,nat_name) values (504, '洪都拉斯')
;insert into dim_native_code (nat_id,nat_name) values (505, '尼加拉瓜')
;insert into dim_native_code (nat_id,nat_name) values (506, '哥斯达黎加')
;insert into dim_native_code (nat_id,nat_name) values (507, '巴拿马')
;insert into dim_native_code (nat_id,nat_name) values (51 , '秘鲁')
;insert into dim_native_code (nat_id,nat_name) values (52 , '墨西哥')
;insert into dim_native_code (nat_id,nat_name) values (53 , '古巴')
;insert into dim_native_code (nat_id,nat_name) values (54 , '阿根廷')
;insert into dim_native_code (nat_id,nat_name) values (55 , '巴西')
;insert into dim_native_code (nat_id,nat_name) values (56 , '智利')
;insert into dim_native_code (nat_id,nat_name) values (57 , '哥伦比亚')
;insert into dim_native_code (nat_id,nat_name) values (58 , '委内瑞拉')
;insert into dim_native_code (nat_id,nat_name) values (591, '玻利维亚')
;insert into dim_native_code (nat_id,nat_name) values (592, '圭亚那')
;insert into dim_native_code (nat_id,nat_name) values (593, '厄瓜多尔')
;insert into dim_native_code (nat_id,nat_name) values (595, '巴拉圭')
;insert into dim_native_code (nat_id,nat_name) values (596, '马提尼克(法)')
;insert into dim_native_code (nat_id,nat_name) values (597, '苏里南')
;insert into dim_native_code (nat_id,nat_name) values (598, '乌拉圭')
;insert into dim_native_code (nat_id,nat_name) values (599, '荷属安的列斯群岛')
;insert into dim_native_code (nat_id,nat_name) values (60 , '马来西亚')
;insert into dim_native_code (nat_id,nat_name) values (61 , '澳大利亚')
;insert into dim_native_code (nat_id,nat_name) values (62 , '印度尼西亚')
;insert into dim_native_code (nat_id,nat_name) values (63 , '菲律宾')
;insert into dim_native_code (nat_id,nat_name) values (64 , '新西兰')
;insert into dim_native_code (nat_id,nat_name) values (65 , '新加坡')
;insert into dim_native_code (nat_id,nat_name) values (66 , '泰国')
;insert into dim_native_code (nat_id,nat_name) values (673, '文莱')
;insert into dim_native_code (nat_id,nat_name) values (675, '巴布亚新几内亚')
;insert into dim_native_code (nat_id,nat_name) values (676, '汤加')
;insert into dim_native_code (nat_id,nat_name) values (679, '斐济')
;insert into dim_native_code (nat_id,nat_name) values (680, '帕劳')
;insert into dim_native_code (nat_id,nat_name) values (687, '新喀里多尼亚')
;insert into dim_native_code (nat_id,nat_name) values (689, '法属波利尼西亚')
;insert into dim_native_code (nat_id,nat_name) values (7 , '俄罗斯')
;insert into dim_native_code (nat_id,nat_name) values (81 , '日本')
;insert into dim_native_code (nat_id,nat_name) values (82 , '韩国')
;insert into dim_native_code (nat_id,nat_name) values (84 , '越南')
;insert into dim_native_code (nat_id,nat_name) values (855, '柬埔寨')
;insert into dim_native_code (nat_id,nat_name) values (856, '老挝')
;insert into dim_native_code (nat_id,nat_name) values (880, '孟加拉国')
;insert into dim_native_code (nat_id,nat_name) values (90 , '土耳其')
;insert into dim_native_code (nat_id,nat_name) values (91 , '印度')
;insert into dim_native_code (nat_id,nat_name) values (92 , '巴基斯坦')
;insert into dim_native_code (nat_id,nat_name) values (93 , '阿富汗')
;insert into dim_native_code (nat_id,nat_name) values (94 , '斯里兰卡')
;insert into dim_native_code (nat_id,nat_name) values (95 , '缅甸')
;insert into dim_native_code (nat_id,nat_name) values (960, '马尔代夫')
;insert into dim_native_code (nat_id,nat_name) values (961, '黎巴嫩')
;insert into dim_native_code (nat_id,nat_name) values (962, '约旦')
;insert into dim_native_code (nat_id,nat_name) values (963, '叙利亚')
;insert into dim_native_code (nat_id,nat_name) values (964, '伊拉克')
;insert into dim_native_code (nat_id,nat_name) values (965, '科威特')
;insert into dim_native_code (nat_id,nat_name) values (966, '沙特阿拉伯')
;insert into dim_native_code (nat_id,nat_name) values (967, '也门')
;insert into dim_native_code (nat_id,nat_name) values (968, '阿曼')
;insert into dim_native_code (nat_id,nat_name) values (970, '巴勒斯坦')
;insert into dim_native_code (nat_id,nat_name) values (971, '阿拉伯联合酋长国')
;insert into dim_native_code (nat_id,nat_name) values (972, '以色列')
;insert into dim_native_code (nat_id,nat_name) values (973, '巴林')
;insert into dim_native_code (nat_id,nat_name) values (974, '卡塔尔')
;insert into dim_native_code (nat_id,nat_name) values (975, '不丹')
;insert into dim_native_code (nat_id,nat_name) values (976, '蒙古')
;insert into dim_native_code (nat_id,nat_name) values (977, '尼泊尔')
;insert into dim_native_code (nat_id,nat_name) values (98 , '伊朗')
;insert into dim_native_code (nat_id,nat_name) values (992, '塔吉克斯坦')
;insert into dim_native_code (nat_id,nat_name) values (993, '土库曼斯坦')
;insert into dim_native_code (nat_id,nat_name) values (994, '阿塞拜疆')
;insert into dim_native_code (nat_id,nat_name) values (995, '格鲁吉亚')
;insert into dim_native_code (nat_id,nat_name) values (996, '吉尔吉斯斯坦')
;insert into dim_native_code (nat_id,nat_name) values (998, '乌兹别克斯坦')
;insert into dim_native_code (nat_id,nat_name) values (380, '乌克兰')
;insert into dim_native_code (nat_id,nat_name) values (381, '塞尔维亚')
;insert into dim_native_code (nat_id,nat_name) values (382, '黑山')
;insert into dim_native_code (nat_id,nat_name) values (385, '克罗地亚')
;insert into dim_native_code (nat_id,nat_name) values (386, '斯洛文尼亚')