打印本文 打印本文 关闭窗口 关闭窗口
有趣的sql(4) - 关于注释的,续有趣的sql(1)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数1183  更新时间:2007/11/14 11:13:24  文章录入:mintao  责任编辑:mintao

1. 这个结果会是什么?

SELECT 2 --
-1 from dual;

提示:要是按照“有趣的sql(1)”的思路,有可能会犯错误的!

 

2. 这个有错吗?

select sysdate
REMARK from dual;

 

3. 这个呢?

create or replace
/* hello */
procedure hello
as
begin
null;
end;
/

4. 还有这些:

SELECT ''''Y'''' FROM DUAL; -- Testing


select sysdate
-- comment;
from dual;

注:1.为自编。 2.3.4 摘自SQL*Plus User''''s Guide and Reference

打印本文 打印本文 关闭窗口 关闭窗口