要修改Oracle数据库中的注释,可以使用以下SQL语句:
COMMENT ON TABLE table_name IS 'new_table_comment';
COMMENT ON COLUMN table_name.column_name IS 'new_column_comment';
其中,table_name
是要修改注释的表名,column_name
是要修改注释的列名,new_table_comment
是新的表注释,new_column_comment
是新的列注释。
例如,要修改表employees
的注释为This table stores employee information
,可以使用以下SQL语句:
COMMENT ON TABLE employees IS 'This table stores employee information';
要修改employees
表中的列first_name
的注释为First name of the employee
,可以使用以下SQL语句:
COMMENT ON COLUMN employees.first_name IS 'First name of the employee';
辰迅云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读: Oracle数据库中的PL/SQL是什么