diff --git a/MYSQL_Cheatsheet.md b/MYSQL_Cheatsheet.md index 85aba77..da56464 100644 --- a/MYSQL_Cheatsheet.md +++ b/MYSQL_Cheatsheet.md @@ -77,9 +77,16 @@ MYSQL #Deletes multiple views. DROP VIEW VIEW1,VIEW2…; + #Truncate a table + TRUNCATE [TABLE] table_name; + + #Rename a table + RENAME TABLE table_name TO table_name; + #return the number of rows SELECT COUNT(*) FROM TABLENAME #Use of IN operator with WHERE clause SELECT FROM WHERE IN (value1, value2, …) +