
Alter table 表名 change column 原字段名称 现字段名称 数据类型
2.新增字段表
alter table 表名 add columns(字段名 数据类型)
3.时间类型的字段设置为date时显示不出来的问题
将时间类型的字段修改为string就可以正常显示了
可以呀,根据自己的需求指定就行了!但是一般情况用string的!比如:
use dw
drop table if exists xxxxx
CREATE TABLE xxxxx (
time string,
user_id int,
keyword string
)
comment "记录表"
partitioned by (ds string, hour string, type int)
stored as textfile
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)