关于Oracle DB中SQL Script的注释(REM,--,/* */)
来源:互联网 发布:移动网络玩dota2 编辑:程序博客网 时间:2024/04/29 17:59
转自:http://blog.csdn.net/pan_tian/article/details/7745666
Oracle DB中SQL Script注释的语法
- 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.
- 关于Oracle DB中SQL Script的注释(REM,--,/* */)
- 关于Oracle DB中SQL Script的注释(REM,--,/* */)
- 数据库ORACLE的sql文件中,rem请问是什么意思啊?
- sql script create db
- 一些有用的oracle sql script 不断完善中……
- 自已在用的Oracle DB Rman Script
- 一组有用的 Oracle SQL Script
- 关于动态导出SQL数据库的SCRIPT
- [DB Script] Pl/Sql 脚本汇总
- Oracle Script-GetHparDes.sql
- Oracle-script-ShowEvents.sql
- Oracle Script-ShowSessionWait.sql
- Oracle DB常用SQL
- oracle中SQL关于时间的问题
- 在oracle中关于树的sql
- 关于oracle中sql*loader的总结
- bat批处理中的注释,rem的使用
- Oracle db中 CONNECT role的含义
- 数组形参
- linux_mv
- 使用ATJTAGICE3进行debugWIRE调试 (2012-03-03 10:38:47)
- STP协议及其配置(二),共两部分
- eclipse快捷键
- 关于Oracle DB中SQL Script的注释(REM,--,/* */)
- android handle thread runnable的关系
- 面试复习==华山论剑(一)?二分查找也是病:BSearch
- PHP程序员的10个有用的技巧和教程
- ubuntu 12.04 编译添加内核
- Oracle SQL*PLUS基础及sqlplus命令详解-1
- eclipse中的程序无法在真机中运行
- CentOS yum 源的配置与使用
- python实现百度、CSDN、淘宝、人人自动登录(第一季)