由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);