1. create table dl.tg_srms_t_sc_supplier(
    2. id string comment ' ',
    3. supplier_name string comment ' ',
    4. supplier_abbr string comment ' ',
    5. sup_tel string comment '电话 ',
    6. nation_diff string comment '1:国内;2;国外; ',
    7. nation_id string comment '常数管理 ',
    8. load_time string comment '数据抽取时间 ',
    9. biz_date string comment ' ')
    10. ROW FORMAT DELIMITED
    11. FIELDS TERMINATED BY ','
    12. STORED AS TEXTFILE;

    加载本地数据文件到表里

    1. hive>LOAD DATA LOCAL INPATH '/risk/dwd_risk_province_city.txt' OVERWRITE INTO TABLE dwd_risk_province_city;