首页 > 数据库 > > 创建和管理表-创建表
CREATE TABLE customer_t1
(
c_customer_sk integer,
c_customer_id char(5),
c_first_name char(6),
c_last_name char(8)
)
with (orientation = column,compression=middle)
distribute by hash (c_last_name);
当结果显示为如下信息,则表示创建成功。
CREATE TABLE其中c_customer_sk 、c_customer_id、c_first_name和c_last_name是表的字段名,integer、char(5)、char(6)和char(8)分别是这四字段名称的类型。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69959250/viewspace-3168688/ ,如需转载,请注明出处,否则将追究法律责任。