Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can I use truncate and where clause in the same statement?

973995Dec 13 2012 — edited Dec 16 2012
Hello guys,

Can I use truncate with where clause in the same statement.


For ex:

TRUNCATE TABLE my_table WHERE id < 500;

If not, what you recommend me in order to decrase the High Water Mark level?


By the way
select * from v$version;
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 64-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
>

Thanks a lot.

Edited by: 970992 on 13.Ara.2012 11:14
This post has been answered by unknown-7404 on Dec 16 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 13 2013
Added on Dec 13 2012
23 comments
26,696 views