GBase 8a
运维管理
文章

Gbase8a加载空格处理

发表于2025-11-12 16:46:4228次浏览0个评论

加载语句参数preserve blanks用于设定是否保留字段内容两端的空格,加载语句默认不保留空格。
加载语句示例:

drop database if exists test;

create database test;

use test;

create table t(a int, b varchar(20),c bigint); 

(1)加载默认不保留空格

load data infile 'file://${ip_host}/opt/t.tbl' into table t fields terminated by '|';

评论

登录后才可以发表评论