TRUNCATE TABLE
The TRUNCATE TABLE statement deletes all rows in a table.
General format
EXEC SQL [ AT Database ] TRUNCATE TABLE Table-Name [ Options ] END-EXEC |
Syntax rules
1. Options is passed to the driver without further checks. Refer to the database documentation for detailed syntax. Syntax errors, if any, are returned at runtime.
Examples
Empty the table log
exec sql truncate table log end-exec |