From a4fb1fcba8fbff10fa44b93788fae4c0318082d6 Mon Sep 17 00:00:00 2001 From: nikhilkalburgi <70331875+nikhilkalburgi@users.noreply.github.com> Date: Thu, 20 Oct 2022 18:54:20 +0530 Subject: [PATCH 1/2] Update MYSQL_Cheatsheet.md --- MYSQL_Cheatsheet.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MYSQL_Cheatsheet.md b/MYSQL_Cheatsheet.md index f78c2c6..8cc18df 100644 --- a/MYSQL_Cheatsheet.md +++ b/MYSQL_Cheatsheet.md @@ -76,3 +76,9 @@ MYSQL #Deletes multiple views. DROP VIEW VIEW1,VIEW2…; + + #Truncate a table + TRUNCATE [TABLE] TABLENAME; + + #Rename a table + RENAME TABLE OLDTABLENAME TO NEWTABLENAME; From aec18280dd6f322e465f0f4b83700abf0ff90eb1 Mon Sep 17 00:00:00 2001 From: nikhilkalburgi <70331875+nikhilkalburgi@users.noreply.github.com> Date: Thu, 20 Oct 2022 18:59:50 +0530 Subject: [PATCH 2/2] Update MYSQL_Cheatsheet.md --- MYSQL_Cheatsheet.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MYSQL_Cheatsheet.md b/MYSQL_Cheatsheet.md index 8cc18df..a00bb20 100644 --- a/MYSQL_Cheatsheet.md +++ b/MYSQL_Cheatsheet.md @@ -78,7 +78,7 @@ MYSQL DROP VIEW VIEW1,VIEW2…; #Truncate a table - TRUNCATE [TABLE] TABLENAME; + TRUNCATE [TABLE] table_name; #Rename a table - RENAME TABLE OLDTABLENAME TO NEWTABLENAME; + RENAME TABLE table_name TO table_name;