<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Insert Error on Oracle 11g but Not on 10g</title>
	<atom:link href="http://hoopercharles.wordpress.com/2011/06/02/insert-error-on-oracle-11g-but-not-on-10g/feed/" rel="self" type="application/rss+xml" />
	<link>http://hoopercharles.wordpress.com/2011/06/02/insert-error-on-oracle-11g-but-not-on-10g/</link>
	<description>Miscellaneous Random Oracle Topics: Stop, Think, ... Understand</description>
	<lastBuildDate>Mon, 13 May 2013 14:10:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2011/06/02/insert-error-on-oracle-11g-but-not-on-10g/#comment-3445</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Fri, 10 Jun 2011 12:42:49 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=4926#comment-3445</guid>
		<description><![CDATA[William,

Thank you for the additional information regarding the refererencing clause.]]></description>
		<content:encoded><![CDATA[<p>William,</p>
<p>Thank you for the additional information regarding the refererencing clause.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William Robertson</title>
		<link>http://hoopercharles.wordpress.com/2011/06/02/insert-error-on-oracle-11g-but-not-on-10g/#comment-3403</link>
		<dc:creator><![CDATA[William Robertson]]></dc:creator>
		<pubDate>Tue, 07 Jun 2011 11:38:14 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=4926#comment-3403</guid>
		<description><![CDATA[Still off-topic, but name collisions with NEW and OLD can only occur with tables that are named &#039;NEW&#039; or &#039;OLD&#039;, and even then it is only &#039;to avoid confusion&#039; and a referencing clause is not needed. If anything, I think the referencing clause has increased the amount of confusion. Code generators often have to include this sort of clause because they can&#039;t tell whether you set it explicitly.]]></description>
		<content:encoded><![CDATA[<p>Still off-topic, but name collisions with NEW and OLD can only occur with tables that are named &#8216;NEW&#8217; or &#8216;OLD&#8217;, and even then it is only &#8216;to avoid confusion&#8217; and a referencing clause is not needed. If anything, I think the referencing clause has increased the amount of confusion. Code generators often have to include this sort of clause because they can&#8217;t tell whether you set it explicitly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2011/06/02/insert-error-on-oracle-11g-but-not-on-10g/#comment-3323</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Fri, 03 Jun 2011 12:47:55 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=4926#comment-3323</guid>
		<description><![CDATA[Mohamed,

Thank you for reproducing the error on 11.2.0.1.

Anyone running Oracle Database 9i (or 8i) that can test the script?]]></description>
		<content:encoded><![CDATA[<p>Mohamed,</p>
<p>Thank you for reproducing the error on 11.2.0.1.</p>
<p>Anyone running Oracle Database 9i (or 8i) that can test the script?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2011/06/02/insert-error-on-oracle-11g-but-not-on-10g/#comment-3322</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Fri, 03 Jun 2011 12:43:46 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=4926#comment-3322</guid>
		<description><![CDATA[Jay,

Thank you for confirming the results on Oracle Database 10.2.0.5.]]></description>
		<content:encoded><![CDATA[<p>Jay,</p>
<p>Thank you for confirming the results on Oracle Database 10.2.0.5.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2011/06/02/insert-error-on-oracle-11g-but-not-on-10g/#comment-3321</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Fri, 03 Jun 2011 12:42:10 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=4926#comment-3321</guid>
		<description><![CDATA[Jimmy, regarding the &quot;REFERENCING NEW AS NEW&quot; entry, I was originally planning to extend the example, but decided against doing so.  For that reason, it probably looks like I was working from the &quot;Dummies&quot; book (my PL/SQL abiity is a little rusty, but I have never used that book) where the &quot;REFERENCING NEW AS NEW&quot; clause is found:
http://books.google.com/books?id=NDTPCe8tM94C&amp;pg=PA175&amp;lpg=PA175#v=onepage&amp;q&amp;f=false

I would prefer to say that I was intending to alias &quot;NEW&quot; as something else due to a potential naming conflict:
http://download.oracle.com/docs/cd/E14072_01/appdev.112/e10472/triggers.htm#LNPLS749

As my sample code is written, there is no point in the &quot;REFERENCING NEW AS NEW&quot; phrase in the trigger code (I think that this is what you are implying).  

I assume that the person in the forum thread was attempting to do something like the following, just without realizing that a sequence must be created to generate the sequential numbers:
&lt;pre&gt;
DROP TABLE T1 PURGE;
DROP TABLE T2 PURGE;
CREATE SEQUENCE T2_C2;

CREATE TABLE T1(C1 DATE, C2 NUMBER);

CREATE TABLE T2(C1 DATE, C2 NUMBER);

CREATE OR REPLACE TRIGGER T1_AFTER_INSERT AFTER INSERT ON T1
REFERENCING NEW AS NEW
FOR EACH ROW
BEGIN
  INSERT INTO T2 VALUES (:NEW.C1,T2_C2.NEXTVAL);
END T1_AFTER_INSERT;
/

INSERT INTO T1 VALUES(SYSDATE-10,-10);

INSERT INTO
  T1
SELECT
  SYSDATE+ROWNUM,
  ROWNUM
FROM
  DUAL
CONNECT BY
  LEVEL&lt;=10;

INSERT INTO T1 VALUES(SYSDATE-ROWNUM,ROWNUM);

SELECT * FROM T2;
&lt;/pre&gt;
The output of the above follows (note that this is similar to Answer B above):
&lt;pre&gt;
SQL&gt; SELECT * FROM T2;
 
C1                C2
--------- ----------
24-MAY-11          1
04-JUN-11          2
05-JUN-11          3
06-JUN-11          4
07-JUN-11          5
08-JUN-11          6
09-JUN-11          7
10-JUN-11          8
11-JUN-11          9
12-JUN-11         10
13-JUN-11         11
 
11 rows selected.
&lt;/pre&gt;

As demonstrated below, the &quot;REFERENCING NEW AS NEW&quot; clause is not necessary:
&lt;pre&gt;
DROP SEQUENCE T2_C2;
DROP TABLE T1 PURGE;
DROP TABLE T2 PURGE;
CREATE SEQUENCE T2_C2;

CREATE TABLE T1(C1 DATE, C2 NUMBER);

CREATE TABLE T2(C1 DATE, C2 NUMBER);

CREATE OR REPLACE TRIGGER T1_AFTER_INSERT AFTER INSERT ON T1
FOR EACH ROW
BEGIN
  INSERT INTO T2 VALUES (:NEW.C1,T2_C2.NEXTVAL);
END T1_AFTER_INSERT;
/

INSERT INTO T1 VALUES(SYSDATE-10,-10);

INSERT INTO
  T1
SELECT
  SYSDATE+ROWNUM,
  ROWNUM
FROM
  DUAL
CONNECT BY
  LEVEL&lt;=10;

INSERT INTO T1 VALUES(SYSDATE-ROWNUM,ROWNUM);

SELECT * FROM T2;
&lt;/pre&gt;

&lt;pre&gt;
SQL&gt; SELECT * FROM T2;

C1                C2
--------- ----------
24-MAY-11          1
04-JUN-11          2
05-JUN-11          3
06-JUN-11          4
07-JUN-11          5
08-JUN-11          6
09-JUN-11          7
10-JUN-11          8
11-JUN-11          9
12-JUN-11         10
13-JUN-11         11

11 rows selected.
&lt;/pre&gt;

Of course if we have a name collision with the word &quot;NEW&quot;, we can specify the &quot;REFERENCING NEW AS&quot; clause:
&lt;pre&gt;
DROP SEQUENCE T2_C2;
DROP TABLE T1 PURGE;
DROP TABLE T2 PURGE;
CREATE SEQUENCE T2_C2;

CREATE TABLE T1(C1 DATE, C2 NUMBER);

CREATE TABLE T2(C1 DATE, C2 NUMBER);

CREATE OR REPLACE TRIGGER T1_AFTER_INSERT AFTER INSERT ON T1
REFERENCING NEW AS NEW_NO_NAME_COLLISION
FOR EACH ROW
BEGIN
  INSERT INTO T2 VALUES (:NEW_NO_NAME_COLLISION.C1,T2_C2.NEXTVAL);
END T1_AFTER_INSERT;
/

INSERT INTO T1 VALUES(SYSDATE-10,-10);

INSERT INTO
  T1
SELECT
  SYSDATE+ROWNUM,
  ROWNUM
FROM
  DUAL
CONNECT BY
  LEVEL&lt;=10;

INSERT INTO T1 VALUES(SYSDATE-ROWNUM,ROWNUM);

SELECT * FROM T2;
&lt;/pre&gt;

&lt;pre&gt;
SQL&gt; SELECT * FROM T2;

C1                C2
--------- ----------
24-MAY-11          1
04-JUN-11          2
05-JUN-11          3
06-JUN-11          4
07-JUN-11          5
08-JUN-11          6
09-JUN-11          7
10-JUN-11          8
11-JUN-11          9
12-JUN-11         10
13-JUN-11         11

11 rows selected.
&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>Jimmy, regarding the &#8220;REFERENCING NEW AS NEW&#8221; entry, I was originally planning to extend the example, but decided against doing so.  For that reason, it probably looks like I was working from the &#8220;Dummies&#8221; book (my PL/SQL abiity is a little rusty, but I have never used that book) where the &#8220;REFERENCING NEW AS NEW&#8221; clause is found:<br />
<a href="http://books.google.com/books?id=NDTPCe8tM94C&#038;pg=PA175&#038;lpg=PA175#v=onepage&#038;q&#038;f=false" rel="nofollow">http://books.google.com/books?id=NDTPCe8tM94C&#038;pg=PA175&#038;lpg=PA175#v=onepage&#038;q&#038;f=false</a></p>
<p>I would prefer to say that I was intending to alias &#8220;NEW&#8221; as something else due to a potential naming conflict:<br />
<a href="http://download.oracle.com/docs/cd/E14072_01/appdev.112/e10472/triggers.htm#LNPLS749" rel="nofollow">http://download.oracle.com/docs/cd/E14072_01/appdev.112/e10472/triggers.htm#LNPLS749</a></p>
<p>As my sample code is written, there is no point in the &#8220;REFERENCING NEW AS NEW&#8221; phrase in the trigger code (I think that this is what you are implying).  </p>
<p>I assume that the person in the forum thread was attempting to do something like the following, just without realizing that a sequence must be created to generate the sequential numbers:</p>
<pre>
DROP TABLE T1 PURGE;
DROP TABLE T2 PURGE;
CREATE SEQUENCE T2_C2;

CREATE TABLE T1(C1 DATE, C2 NUMBER);

CREATE TABLE T2(C1 DATE, C2 NUMBER);

CREATE OR REPLACE TRIGGER T1_AFTER_INSERT AFTER INSERT ON T1
REFERENCING NEW AS NEW
FOR EACH ROW
BEGIN
  INSERT INTO T2 VALUES (:NEW.C1,T2_C2.NEXTVAL);
END T1_AFTER_INSERT;
/

INSERT INTO T1 VALUES(SYSDATE-10,-10);

INSERT INTO
  T1
SELECT
  SYSDATE+ROWNUM,
  ROWNUM
FROM
  DUAL
CONNECT BY
  LEVEL&lt;=10;

INSERT INTO T1 VALUES(SYSDATE-ROWNUM,ROWNUM);

SELECT * FROM T2;
</pre>
<p>The output of the above follows (note that this is similar to Answer B above):</p>
<pre>
SQL&gt; SELECT * FROM T2;
 
C1                C2
--------- ----------
24-MAY-11          1
04-JUN-11          2
05-JUN-11          3
06-JUN-11          4
07-JUN-11          5
08-JUN-11          6
09-JUN-11          7
10-JUN-11          8
11-JUN-11          9
12-JUN-11         10
13-JUN-11         11
 
11 rows selected.
</pre>
<p>As demonstrated below, the &#8220;REFERENCING NEW AS NEW&#8221; clause is not necessary:</p>
<pre>
DROP SEQUENCE T2_C2;
DROP TABLE T1 PURGE;
DROP TABLE T2 PURGE;
CREATE SEQUENCE T2_C2;

CREATE TABLE T1(C1 DATE, C2 NUMBER);

CREATE TABLE T2(C1 DATE, C2 NUMBER);

CREATE OR REPLACE TRIGGER T1_AFTER_INSERT AFTER INSERT ON T1
FOR EACH ROW
BEGIN
  INSERT INTO T2 VALUES (:NEW.C1,T2_C2.NEXTVAL);
END T1_AFTER_INSERT;
/

INSERT INTO T1 VALUES(SYSDATE-10,-10);

INSERT INTO
  T1
SELECT
  SYSDATE+ROWNUM,
  ROWNUM
FROM
  DUAL
CONNECT BY
  LEVEL&lt;=10;

INSERT INTO T1 VALUES(SYSDATE-ROWNUM,ROWNUM);

SELECT * FROM T2;
</pre>
<pre>
SQL&gt; SELECT * FROM T2;

C1                C2
--------- ----------
24-MAY-11          1
04-JUN-11          2
05-JUN-11          3
06-JUN-11          4
07-JUN-11          5
08-JUN-11          6
09-JUN-11          7
10-JUN-11          8
11-JUN-11          9
12-JUN-11         10
13-JUN-11         11

11 rows selected.
</pre>
<p>Of course if we have a name collision with the word &#8220;NEW&#8221;, we can specify the &#8220;REFERENCING NEW AS&#8221; clause:</p>
<pre>
DROP SEQUENCE T2_C2;
DROP TABLE T1 PURGE;
DROP TABLE T2 PURGE;
CREATE SEQUENCE T2_C2;

CREATE TABLE T1(C1 DATE, C2 NUMBER);

CREATE TABLE T2(C1 DATE, C2 NUMBER);

CREATE OR REPLACE TRIGGER T1_AFTER_INSERT AFTER INSERT ON T1
REFERENCING NEW AS NEW_NO_NAME_COLLISION
FOR EACH ROW
BEGIN
  INSERT INTO T2 VALUES (:NEW_NO_NAME_COLLISION.C1,T2_C2.NEXTVAL);
END T1_AFTER_INSERT;
/

INSERT INTO T1 VALUES(SYSDATE-10,-10);

INSERT INTO
  T1
SELECT
  SYSDATE+ROWNUM,
  ROWNUM
FROM
  DUAL
CONNECT BY
  LEVEL&lt;=10;

INSERT INTO T1 VALUES(SYSDATE-ROWNUM,ROWNUM);

SELECT * FROM T2;
</pre>
<pre>
SQL&gt; SELECT * FROM T2;

C1                C2
--------- ----------
24-MAY-11          1
04-JUN-11          2
05-JUN-11          3
06-JUN-11          4
07-JUN-11          5
08-JUN-11          6
09-JUN-11          7
10-JUN-11          8
11-JUN-11          9
12-JUN-11         10
13-JUN-11         11

11 rows selected.
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Houri Mohamed</title>
		<link>http://hoopercharles.wordpress.com/2011/06/02/insert-error-on-oracle-11g-but-not-on-10g/#comment-3310</link>
		<dc:creator><![CDATA[Houri Mohamed]]></dc:creator>
		<pubDate>Thu, 02 Jun 2011 14:57:47 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=4926#comment-3310</guid>
		<description><![CDATA[Charles,

I have reproduced the same behaviour in 11.2.0.1.0 (don&#039;t be disturbed by the error displayed in french)


mhouri@mhouri&gt; select * from v$version;

BANNER
------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE    11.2.0.1.0      Production
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production

mhouri@mhouri&gt; INSERT INTO
  2    T1
  3  SELECT
  4    SYSDATE+ROWNUM,
  5    ROWNUM
  6  FROM
  7    DUAL
  8  CONNECT BY
  9    LEVEL&lt;=10;
  T1
  *
ERREUR Ó la ligne 2 :
ORA-00976: Pseudo-colonne ou opÚrateur indiquÚ non autorisÚ ici.
ORA-06512: Ó &quot;MHOURI.T1_AFTER_INSERT&quot;, ligne 2
ORA-04088: erreur lors d&#039;exÚcution du dÚclencheur &#039;MHOURI.T1_AFTER_INSERT&#039;

Best regards]]></description>
		<content:encoded><![CDATA[<p>Charles,</p>
<p>I have reproduced the same behaviour in 11.2.0.1.0 (don&#8217;t be disturbed by the error displayed in french)</p>
<p>mhouri@mhouri&gt; select * from v$version;</p>
<p>BANNER<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 &#8211; Production<br />
PL/SQL Release 11.2.0.1.0 &#8211; Production<br />
CORE    11.2.0.1.0      Production<br />
TNS for 32-bit Windows: Version 11.2.0.1.0 &#8211; Production<br />
NLSRTL Version 11.2.0.1.0 &#8211; Production</p>
<p>mhouri@mhouri&gt; INSERT INTO<br />
  2    T1<br />
  3  SELECT<br />
  4    SYSDATE+ROWNUM,<br />
  5    ROWNUM<br />
  6  FROM<br />
  7    DUAL<br />
  8  CONNECT BY<br />
  9    LEVEL&lt;=10;<br />
  T1<br />
  *<br />
ERREUR Ó la ligne 2 :<br />
ORA-00976: Pseudo-colonne ou opÚrateur indiquÚ non autorisÚ ici.<br />
ORA-06512: Ó &quot;MHOURI.T1_AFTER_INSERT&quot;, ligne 2<br />
ORA-04088: erreur lors d&#039;exÚcution du dÚclencheur &#039;MHOURI.T1_AFTER_INSERT&#039;</p>
<p>Best regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimmy</title>
		<link>http://hoopercharles.wordpress.com/2011/06/02/insert-error-on-oracle-11g-but-not-on-10g/#comment-3307</link>
		<dc:creator><![CDATA[Jimmy]]></dc:creator>
		<pubDate>Thu, 02 Jun 2011 13:34:34 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=4926#comment-3307</guid>
		<description><![CDATA[Excellent post, Charles! Not to be picky. But when it comes to triggers I never understood the point of &quot;REFERENCING NEW AS NEW&quot;.]]></description>
		<content:encoded><![CDATA[<p>Excellent post, Charles! Not to be picky. But when it comes to triggers I never understood the point of &#8220;REFERENCING NEW AS NEW&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://hoopercharles.wordpress.com/2011/06/02/insert-error-on-oracle-11g-but-not-on-10g/#comment-3302</link>
		<dc:creator><![CDATA[Jay]]></dc:creator>
		<pubDate>Thu, 02 Jun 2011 08:54:19 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=4926#comment-3302</guid>
		<description><![CDATA[On 10.2.0.5:
 
14:46:20 SQL&gt; CREATE TABLE T1(C1 DATE, C2 NUMBER);


Table created.

Elapsed: 00:00:00.07
16:50:33 SQL&gt; 16:50:33 SQL&gt; CREATE TABLE T2(C1 DATE, C2 NUMBER);

Table created.

Elapsed: 00:00:00.04
16:50:37 SQL&gt; CREATE OR REPLACE TRIGGER T1_AFTER_INSERT AFTER INSERT ON T1
REFERENCING NEW AS NEW
FOR EACH ROW
BEGIN
  INSERT INTO T2 VALUES (SYSDATE,ROWNUM);
END T1_AFTER_INSERT;
/
16:50:42   2  16:50:42   3  16:50:42   4  16:50:42   5  16:50:42   6  16:50:42   7
Trigger created.

Elapsed: 00:00:00.15
16:50:42 SQL&gt; INSERT INTO T1 VALUES(SYSDATE-10,-10);

1 row created.

Elapsed: 00:00:00.04
16:50:46 SQL&gt; INSERT INTO
  T1
SELECT
  SYSDATE+ROWNUM,
  ROWNUM
FROM
  DUAL
CONNECT BY
  LEVEL INSERT INTO T1 VALUES(SYSDATE-ROWNUM,ROWNUM);

1 row created.

Elapsed: 00:00:00.00
16:50:54 SQL&gt;
16:51:01 SQL&gt;
16:51:01 SQL&gt;
16:51:01 SQL&gt;
16:51:01 SQL&gt;
16:51:02 SQL&gt;
16:51:02 SQL&gt; select * from t2;

C1                C2
--------- ----------
02-JUN-11          0
02-JUN-11          0
02-JUN-11          0
02-JUN-11          0
02-JUN-11          0
02-JUN-11          0
02-JUN-11          0
02-JUN-11          0
02-JUN-11          0
02-JUN-11          0
02-JUN-11          0

C1                C2
--------- ----------
02-JUN-11          0

12 rows selected.

Elapsed: 00:00:00.01
16:51:07 SQL&gt;]]></description>
		<content:encoded><![CDATA[<p>On 10.2.0.5:</p>
<p>14:46:20 SQL&gt; CREATE TABLE T1(C1 DATE, C2 NUMBER);</p>
<p>Table created.</p>
<p>Elapsed: 00:00:00.07<br />
16:50:33 SQL&gt; 16:50:33 SQL&gt; CREATE TABLE T2(C1 DATE, C2 NUMBER);</p>
<p>Table created.</p>
<p>Elapsed: 00:00:00.04<br />
16:50:37 SQL&gt; CREATE OR REPLACE TRIGGER T1_AFTER_INSERT AFTER INSERT ON T1<br />
REFERENCING NEW AS NEW<br />
FOR EACH ROW<br />
BEGIN<br />
  INSERT INTO T2 VALUES (SYSDATE,ROWNUM);<br />
END T1_AFTER_INSERT;<br />
/<br />
16:50:42   2  16:50:42   3  16:50:42   4  16:50:42   5  16:50:42   6  16:50:42   7<br />
Trigger created.</p>
<p>Elapsed: 00:00:00.15<br />
16:50:42 SQL&gt; INSERT INTO T1 VALUES(SYSDATE-10,-10);</p>
<p>1 row created.</p>
<p>Elapsed: 00:00:00.04<br />
16:50:46 SQL&gt; INSERT INTO<br />
  T1<br />
SELECT<br />
  SYSDATE+ROWNUM,<br />
  ROWNUM<br />
FROM<br />
  DUAL<br />
CONNECT BY<br />
  LEVEL INSERT INTO T1 VALUES(SYSDATE-ROWNUM,ROWNUM);</p>
<p>1 row created.</p>
<p>Elapsed: 00:00:00.00<br />
16:50:54 SQL&gt;<br />
16:51:01 SQL&gt;<br />
16:51:01 SQL&gt;<br />
16:51:01 SQL&gt;<br />
16:51:01 SQL&gt;<br />
16:51:02 SQL&gt;<br />
16:51:02 SQL&gt; select * from t2;</p>
<p>C1                C2<br />
&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;-<br />
02-JUN-11          0<br />
02-JUN-11          0<br />
02-JUN-11          0<br />
02-JUN-11          0<br />
02-JUN-11          0<br />
02-JUN-11          0<br />
02-JUN-11          0<br />
02-JUN-11          0<br />
02-JUN-11          0<br />
02-JUN-11          0<br />
02-JUN-11          0</p>
<p>C1                C2<br />
&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;-<br />
02-JUN-11          0</p>
<p>12 rows selected.</p>
<p>Elapsed: 00:00:00.01<br />
16:51:07 SQL&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles</title>
		<link>http://hoopercharles.wordpress.com/2011/06/02/insert-error-on-oracle-11g-but-not-on-10g/#comment-3301</link>
		<dc:creator><![CDATA[Charles]]></dc:creator>
		<pubDate>Thu, 02 Jun 2011 08:53:26 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=4926#comment-3301</guid>
		<description><![CDATA[Charles,

Thats a good point and it&#039;s indeed seems to be a bug.
 
Thanks,
Jay]]></description>
		<content:encoded><![CDATA[<p>Charles,</p>
<p>Thats a good point and it&#8217;s indeed seems to be a bug.</p>
<p>Thanks,<br />
Jay</p>
]]></content:encoded>
	</item>
</channel>
</rss>
