From the course: MySQL Database Administration
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Solution: Dropping schemas and tables - MySQL Tutorial
From the course: MySQL Database Administration
Solution: Dropping schemas and tables
- [Instructor] All right, this is the solution video for your assignment on deleting tables and schemas. As a reminder, Amy needs your help dropping the table candy_products from the candystore schema, and she would also like you to drop the previous version of the schema, candystore_old. Let's jump into Workbench and walk through the solution. So at this point, I think you're fairly familiar with the candystore schema, but I will just very quickly run through the tables again. We have candy_products, customer_reviews and employees, and Amy wants you to drop candy_products and then drop candystore_old. So it is really as simple as this. Right click, Drop Table, and we can say, yes, Drop Now. And now that candy_products table from the candystore schema no longer exists. We can then also go into the candystore_old. So you see this is now no longer synced with the version that we're maintaining today. It still has the candy_products table. It also has some different columns in the other…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Creating a schema using the MySQL Workbench UI2m 54s
-
(Locked)
Creating a schema using SQL code4m 27s
-
(Locked)
Creating a table using the MySQL Workbench UI6m 52s
-
(Locked)
Creating a table using SQL code6m 3s
-
(Locked)
MySQL data types5m 40s
-
(Locked)
Challenge: Creating your own schema and tables2m 28s
-
(Locked)
Solution: Creating your own schema and tables12m 1s
-
(Locked)
Adding and removing columns using the MySQL Workbench UI13m 39s
-
(Locked)
Adding and removing columns with SQL code5m 4s
-
(Locked)
Challenge: Adding and removing columns1m 25s
-
(Locked)
Solution: Adding and removing columns6m 59s
-
(Locked)
Dropping schemas and tables6m 45s
-
(Locked)
Challenge: Dropping schemas and tables1m 46s
-
(Locked)
Solution: Dropping schemas and tables2m 22s
-
(Locked)
-
-
-
-
-
-