From b0fa75e466cc3e183138df8fcd02ed26d47db472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Tue, 9 Jan 2024 11:54:44 +0100 Subject: [PATCH 1/2] truncate statement ebnf --- sql-statements/sql-statement-truncate.md | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/sql-statements/sql-statement-truncate.md b/sql-statements/sql-statement-truncate.md index 0fa9b6490c7dd..0e93daaefe9b1 100644 --- a/sql-statements/sql-statement-truncate.md +++ b/sql-statements/sql-statement-truncate.md @@ -12,17 +12,13 @@ Both `TRUNCATE TABLE tableName` and `TRUNCATE tableName` are valid syntax. ## Synopsis -**TruncateTableStmt:** +```ebnf+diagram +TruncateTableStmt ::= + "TRUNCATE" ( "TABLE" )? TableName -![TruncateTableStmt](/media/sqlgram/TruncateTableStmt.png) - -**OptTable:** - -![OptTable](/media/sqlgram/OptTable.png) - -**TableName:** - -![TableName](/media/sqlgram/TableName.png) +TableName ::= + ("Identifier" ".")? "Identifier" +``` ## Examples From 1d3150eebcda17a838f3cb7fa96a7f7c4e0d2abc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Mon, 15 Jan 2024 10:44:22 +0100 Subject: [PATCH 2/2] Update sql-statements/sql-statement-truncate.md Co-authored-by: kennytm --- sql-statements/sql-statement-truncate.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql-statements/sql-statement-truncate.md b/sql-statements/sql-statement-truncate.md index 0e93daaefe9b1..6f5def7e46840 100644 --- a/sql-statements/sql-statement-truncate.md +++ b/sql-statements/sql-statement-truncate.md @@ -17,7 +17,7 @@ TruncateTableStmt ::= "TRUNCATE" ( "TABLE" )? TableName TableName ::= - ("Identifier" ".")? "Identifier" + (Identifier ".")? Identifier ``` ## Examples