关于Oracle DB中SQL Script的注释(REM,--,/* */)

来源:这里教程网 时间:2026-02-27 13:53:31 作者:

关于oracle db中sql script的注释(rem,--,/* */) ,Oracle DB中SQL Script注释的语法

关于oracle db中sql script的注释(rem,--,/* */)

[日期:2012-07-14] 来源:Linux社区  作者:pan_tian [字体:]

Oracle DB中SQL Script注释的语法

补充:REM是REMARK的缩写

那么REM和--的区别是什么?

--或者/* */可以用于PL/SQL,但REM[ark]不可以。

下边这段可以在SQL*PLUS中执行成功

但下边这段就不行 关于注释有很清楚的说明。

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.

相关推荐