云数据库 GAUSSDB(FOR MYSQL)-使用LOAD DATA导入本地数据:语法

时间:2024-10-24 17:16:01

语法

LOAD DATA LOCAL
    INFILE 'file_name'
    [REPLACE | IGNORE]
    INTO TABLE tbl_name
    [CHARACTER SET charset_name]
    [{FIELDS | COLUMNS}
        [TERMINATED BY 'string']
        [[OPTIONALLY] ENCLOSED BY 'char']
    ]
    [LINES
        [TERMINATED BY 'string']
    ]
    [IGNORE number {LINES | ROWS}]
    [(col_name_or_user_var
        [, col_name_or_user_var] ...)]
support.huaweicloud.com/gaussdbformysql_faq/gaussdbformysql_faq_0145.html