SQL/MX 2.x Reference Manual (G06.24+, H06.03+)
SQL/MX Utilities
HP NonStop SQL/MX Reference Manual—523725-004
5-75
Examples of PURGEDATA
Examples of PURGEDATA
•
This example purges the data in the specified table. If the table has indexes, their
data is also purged.
PURGEDATA mycat.myschema.mytable;
•
This example purges the data in the specified partition, which has a Guardian
name:
PURGEDATA mycat.myschema.mytable
WHERE LOCATION $DATA1.ZSD009TO.QZ780000;
•
This example purges data from all partitions of the table:
PURGEDATA mycat.myschema.mytable
WHERE KEY = FIRST PARTITION THRU LAST PARTITION;