Updated on 2025-02-22 GMT+08:00

TRUNCATE TABLE

Function

This command is used to clear all data in a specific table.

Syntax

TRUNCATE TABLE tableIdentifier

Parameter Description

Table 1 Parameter descriptions

Parameter

Description

tableIdentifier

Table name.

Example

truncate table h0_1;

System Response

Data in the table is cleared. You can run the QUERY statement to check whether data in the table has been deleted.