CREATE TABLE test
(
database_key
varchar(50) NOT NULL,
vip_birth_date
datetime NULL
) ENGINE=OLAP
UNIQUE KEY(database_key
)
COMMENT “OLAP”
DISTRIBUTED BY HASH(database_key
) BUCKETS 6
PROPERTIES (
“replication_num” = “1”
);
INSERT INTO test(database_key,vip_birth_date)
VALUES(‘1’,‘1948-05-01 00:00:00’)
唯独插入用这个时间就报错