Linux 拨号vps windows公众号手机端

Oracle数据库中怎么修改注释

lewis 9年前 (2016-08-21) 阅读数 8 #VPS/云服务器
文章标签 oracle

要修改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';
版权声明

本文仅代表作者观点,不代表米安网络立场。

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

热门