Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Truncate Table in PL/SQL

Re: Truncate Table in PL/SQL

From: Aamir Siddiqi <aamir_mas_at_hotmail.com>
Date: Thu, 11 Nov 1999 22:22:03 +0500
Message-ID: <382b88c8@news.cyber.net.pk>


Dear Boon,

Although you can truncate a table in a PL/SQL block, but since Truncate causes an implicit commit, all the transactions will be made permanent, and you cannot rollbacked the database, if there is any need.

Try using Delete instead of Truncate.

Regards

AAmir Siddiqi

Chua Boon Yiang <chuaby_at_hotmail.com> wrote in message news:80d6qh$820$1_at_newton.pacific.net.sg...
> Hi
>
> can i do a "truncate table T1" in a PL/SQL block ?
> as i need to manipulate a temp table very often, w/o the ability to do a
> truncate table will have abit efficiency problem.
>
> Thanks
> Boon Yiang
>
>
Received on Thu Nov 11 1999 - 11:22:03 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US