pgsql修改comment
时间: 2024-01-16 15:52:56 浏览: 87
pgsql表修改
在pgsQL中,可以使用ALTER TABLE语句来修改表的注释(comment)。具体的语法如下:
ALTER TABLE table_name ALTER COLUMN column_name SET COMMENT 'new_comment';
其中,table_name是要修改注释的表名,column_name是要修改注释的列名,new_comment是要设置的新注释。通过执行这条语句,可以成功修改表的注释。
参考资料:
提供了修改表名的语法,但与修改comment无关。
提供了修改列类型的示例,但与修改comment无关。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [pgsql之Comment命令](https://blog.csdn.net/qq_35462323/article/details/102858532)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [pgsql修改表名和修改字段的操作](https://blog.csdn.net/qq_28245087/article/details/106142847)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文