我的Postgres错误:语法错误或接近 “修改” - 在Postgres的
alter table user modify column 'distinguishedName1' text;
和
alter table user modify column distinguishedName1 text;
user
执行这条SQL语句是表名distinguishedName1
是具有整数数据类型的列名称。
我想根据用户的输入将数据类型修改为boolean或text或varchar(256)等。但是当我运行查询时出现错误
ERROR: syntax error at or near "modify"
不知道是什么问题。在正确的查询中需要帮助。
凡[手册中(HTTP: //www.postgresql.org/docs/current/static/sql-altertable.html)你有没有看到修改关键字? –
“*根据用户的输入将数据类型修改为(...)”,这听起来像一个可怕的想法。你想用它解决什么问题? –