sqlplus remark

数据库脚本中注释功能有三种

1.remark

SQL> help remark

 REMARK
 ------

 Begins a comment in a script. SQL*Plus does not interpret the comment
 as a command.

 REM[ARK]

rem或remark开头的数据库脚本行中,此行为注释

2./*  ..  */

/* 开头至 */结尾中间一律为注释

3.--

--开头的行为注释内容

注意:第二种和第三种是sql支持的,第一种是sqlplus特有的

4.使用注释的注意事项

1.不要在开始的几行关键字内放置注释

2.不要在语句的结束符后加注释(结束符包括 .(点) ;(分号) /(撇))

3.不要将注释中加入语句的结束符

4.不要将“&”加入注释中

猜你喜欢

转载自leadercoo.iteye.com/blog/1955503