-- 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;

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-23
  • 2021-11-10
  • 2021-10-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2022-02-07
  • 2022-12-23
  • 2021-09-20
相关资源
相似解决方案