Personal tools
You are here: Home DB2 How To's How to truncate a table
Navigation
Log in


Forgot your password?
 
Document Actions

How to truncate a table

to delete all data from one table in the DB2 remotely

You have two commands:

db2 alter table table_name activate not logged initially with empty table

or

db2 load from /dev/null of del replace into <table_name> nonrecoverable

 or remotely:

db2 load client from /dev/null of del replace into <table_name> nonrecoverable
db2 "select tabschema,tabname from syscat.tables where status = 'C' order by tabschema, tabname"
db2 set integrity for <tabname> immediate checked

Security Awareness
Would you like your company to implement gamification into your security awareness program?





Polls