Oracle 表注释和SQL注释
-- table中使用注释 -- 一般方法 comment on table comment_table is '注释表示例'; comment on column comment_table.id is '主键ID'; -- 使用动态sql BEGIN execute immediate 'COMMENT ON column comment_table.id IS ''主键ID'''; END; -- sql中使用注释 -- 单行注释 SELECT suppliers.supplier_id /* Author: TechOnTheNet.com */ FROM suppliers; -- 多行注释 SELECT suppliers.supplier_id /* * Author: TechOnTheNet.com * Purpose: To show a comment that spans multiple lines in your SQL statement. */ FROM suppliers;