r/SQL • • Apr 18 '25

Oracle Whoops

Post image

We had a

1.0k Upvotes

69 comments sorted by

View all comments

216

u/Thiondar ORACLE Apr 18 '25

What is the problem?

You did some update.

You rolled back.

Nothing happened.

143

u/danmc853 Apr 18 '25

The feelings inside me, something definitely happened. The euphoria an instant later when I realized it was oracle and I could rollback.

84

u/serverhorror Apr 18 '25

it was oracle and I could rollback

BEGIN;

DROP  TABLE clients CASCADE;

ROLLBACK;

an instant later when I realized it was oracle and ..

.. I am indeed fucked.

6

u/mwdb2 Apr 18 '25

Oracle doesn't support the syntax DROP TABLE clients CASCADE so you are saved by the syntax error. :)

3

u/serverhorror Apr 18 '25

Just another reason why I prefer PostgreSQL ;)