PUBLIC "-//OASIS//DTD DITA Composite//EN" "ditabase.dtd">
<topicid="topic1"><titleid="ep20941">TRUNCATE</title><body><pid="sql_command_desc">Empties a table of all rows.</p><sectionid="section2"><title>Synopsis</title><codeblockid="sql_command_synopsis">TRUNCATE [TABLE] [ONLY] <varname>name</varname> [ * ] [, ...]
<topicid="topic1"><titleid="ep20941">TRUNCATE</title><body><pid="sql_command_desc">Empties a table of all rows.</p>
<notetype="note">Greenplum Database does not enforce referential integrity syntax (foreign key
constraints). As of version 6.12 <codeph>TRUNCATE</codeph> truncates a table that is
referenced in a foreign key constraint even if the <codeph>CASCADE</codeph> option is