[英]postgres - how to alter a column with timestamp?
在 postgre sql 中 - 如何更改具有时间戳的列。 目前该列定义如下 -
creation_time timestamp(6) with time zone
我也想让上面的列不为空。 所以我在下面尝试过但没有运气
ALTER TABLE my_table ALTER COLUMN creation_time TYPE timestamp(6) with time zone NOT NULL;
什么是正确的语法?
根据文档:
alter table my_table alter creation_time set not null;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.