由varchar修改为date类型
alter table tbname alter column fieldname type date using(fieldname::date);
示例:
alter table fix.no_line alter column reg_time type date using(reg_time::date);
由varchar修改为date类型
alter table tbname alter column fieldname type date using(fieldname::date);
示例:
alter table fix.no_line alter column reg_time type date using(reg_time::date);
本文标题:Greenplum修改字段类型
本文链接:https://www.haomeiwen.com/subject/bhgjhltx.html
网友评论