在 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;
什么是正確的語法?
uj5u.com熱心網友回復:
根據檔案:
alter table my_table alter creation_time set not null;
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/326819.html
標籤:sql PostgreSQL
下一篇:對創建和更新方法的Rails驗證
