Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Truncate Table 1

Status
Not open for further replies.

sathyarams

IS-IT--Management
Jan 2, 2002
290
GB
To truncate a table(delete all rows)

Authorization : SYSADM, DBADM or CONTROL on the table

On Unix :

db2 connect to <dbname>
db2 import from /dev/null of del replace into <table-name>

On Windows:
Create a blank file C:\temp\blank.txt
db2 connect to <dbname>
db2 import from C:\temp\blank.txt of del replace into <tablename>


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top