天天看點

[20120606]sql中的注解問題.txt

BANNER

--------------------------------------------------------------------------------

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

PL/SQL Release 11.2.0.1.0 - Production

CORE    11.2.0.1.0      Production

TNS for Linux: Version 11.2.0.1.0 - Production

NLSRTL Version 11.2.0.1.0 - Production

create table t1 (id number);

2.建立如下腳本,注意注解*後面的方式,1個*後無空格一個後面有空格.

SQL> @aa.sql

1 row created.

Commit complete.

        ID

----------

         1

--可以發現插入兩個記錄.

3.手工執行如下:

--說明寫注解要注意!不知道這個算oracle的bug嗎?好像其他版本也有!

繼續閱讀