> ... I have this feeling the reason Oracle gives this result may
> be again because transactions have been switched off!

This snippet comes from the Oracle console:
(table name is "a" not "test" / messages are in german)

SQL> show autocommit;
autocommit OFF
SQL> select * from a;

         A
----------
         1

SQL> commit;

Transaktion mit COMMIT abgeschlossen.

SQL> insert into a values (2);

1 Zeile wurde erstellt.

SQL> insert into a values (3);

1 Zeile wurde erstellt.

SQL> insert into a values (1);
insert into a values (1)
*
FEHLER in Zeile 1:
ORA-00001: Verstoß gegen Eindeutigkeit, Regel (KLAX.SYS_C001753)


SQL> insert into a values (4);

1 Zeile wurde erstellt.

SQL> commit;

Transaktion mit COMMIT abgeschlossen.

SQL> select * from a;

         A
----------
         1
         3
         4
         2

SQL>

> ...If you want the
> second result in Postgres just switch auto-commit on

Maybe I have to do other things in another table. So I must
do it inside a transaction.

Jörg

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Reply via email to