关于Oracle DB中SQL Script的注释(REM,--,/* */)
2012-07-13 23:41
351 查看
Oracle DB中SQL Script注释的语法
补充:REM是REMARK的缩写
那么REM和--的区别是什么?
--或者/* */可以用于PL/SQL,但REM[ark]不可以。
下边这段可以在SQL*PLUS中执行成功
11.2 documentation on all comment types 关于注释有很清楚的说明。
You can enter comments in a script in three ways:
using the SQL*Plus REMARK command for single line comments.
using the SQL comment delimiters /*... */ for single or multi-line comments.
using ANSI/ISO (American National Standards Institute/International Standards Organization) comments - - for single line comments.
转载请注明出处:/article/1390893.html
======EOF======
REM Single line comment -- Single line comment /* Single line comment */ /* Multi Line comment */
补充:REM是REMARK的缩写
那么REM和--的区别是什么?
--或者/* */可以用于PL/SQL,但REM[ark]不可以。
下边这段可以在SQL*PLUS中执行成功
REM comment -- comment /* comment */ begin DBMS_OUTPUT.PUT_LINE('Test'); --comment DBMS_OUTPUT.PUT_LINE('Test'); /* comment */ end; /但下边这段就不行
begin DBMS_OUTPUT.PUT_LINE('Test'); REM comment end; / begin REM comment DBMS_OUTPUT.PUT_LINE('Test'); end; /
11.2 documentation on all comment types 关于注释有很清楚的说明。
You can enter comments in a script in three ways:
using the SQL*Plus REMARK command for single line comments.
using the SQL comment delimiters /*... */ for single or multi-line comments.
using ANSI/ISO (American National Standards Institute/International Standards Organization) comments - - for single line comments.
转载请注明出处:/article/1390893.html
======EOF======
相关文章推荐
- 关于Oracle DB中SQL Script的注释(REM,--,/* */)
- dotConnect for Oracle中关于SQL*Plus用户的OracleScript提示
- oracle 的关于sql* plus 的语法 ----SQL*Plus常用命令
- 关于ORACLE业务经常用到的业务sql代码
- Oracle中几个关于日期方面的SQL实例
- Procwatcher: Script to Monitor and Examine Oracle DB and Clusterware Processes (文档 ID 459694.1)
- 关于oracle的sqlplus的另一些小技巧
- Related to Oracle SQL 关于选择前N行数据的SQL语句
- 关于Oracle 的定时执行作业问题(动态PL/SQL)
- Oracle DB SQL 计划管理
- 关于ORACLE返回指定行数的SQL写法
- ORACLE关于锁表查询的部分SQL
- 自已在用的Oracle DB Rman Script
- Oracle DB常用SQL
- 关于Oracle SQL性能优化
- Related to Oracle SQL 关于遇到Number型与varchar2型比较时的隐式转换引起的生产问题
- 关于Oracle表及字段的注释
- 一个关于ArcSDE for Oracle SQL function的问题
- Oracle DB SQL 性能分析器
- 关于Oracle表及字段的注释