我是 Postgres 的新手。我想mod
在名为的表中向我的列添加评论app-user-bookings
我试过这个sql代码:
alter table app_user_bookings
modify column mod
int default 1
comment "1# mobile booking, 2# admin booking, 3# web booking, 4# tell call";
Run Code Online (Sandbox Code Playgroud)
但这对我没有帮助,有人可以帮助我吗?
我是 PostgreSQL 的新手,这就是我问这个问题的原因。我有一个表app_client_users
和一个名为client_id
. 最初我将其设置为NOT NULL
,现在我想将其更改为允许 NULL。我试过了
alter table app_client_users alter column client_id int NULL ;
Run Code Online (Sandbox Code Playgroud)
和
alter table app_client_users alter column client_id NULL ;
Run Code Online (Sandbox Code Playgroud)
这是行不通的。我该如何解决?