Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.
MySQL Workbench Create, Alter, Drop Table
Description
In this video we will learn How to Create, Alter, Drop database tables using MySQL Workbench. Open MySQL Workbench and logged in to MySQL database server using 'root' username and password. Under 'schema' menu, double click to select the newly created database in my case 'mytestdb', it display the submenu under the database. The submenu contains, the tables, views, stored procedures, function stored under the selected database.
At this moment we've just created the database so there are no tables or other information stored in it. Select 'Tables' submenu, right click on it and select 'create table' option, We can also click this top menu 'create new table' icon to create a new table under the selected database. By clicking the 'create table' link or icon open a new screen to enter the database table details.
Click inside the middle window and type column name. Lets create the students table here which we saw in practical examples. Click apply button to save the changes, it opens 'SQL statement' window, and click 'apply' button to execute the statement and finish to save the changes. Now under schemas menu, under the selected database, the 'Tables' link will contain the newly created table. We can select the table name to open the table details screen. On this screen, we can modify the column name, data type and other table settings from here.
To delete the table, simply select the table name, right click on it, and select 'drop table' option. On confirmation window, select 'drop now' option to instantly delete the table from the database.
At this moment we've just created the database so there are no tables or other information stored in it. Select 'Tables' submenu, right click on it and select 'create table' option, We can also click this top menu 'create new table' icon to create a new table under the selected database. By clicking the 'create table' link or icon open a new screen to enter the database table details.
Click inside the middle window and type column name. Lets create the students table here which we saw in practical examples. Click apply button to save the changes, it opens 'SQL statement' window, and click 'apply' button to execute the statement and finish to save the changes. Now under schemas menu, under the selected database, the 'Tables' link will contain the newly created table. We can select the table name to open the table details screen. On this screen, we can modify the column name, data type and other table settings from here.
To delete the table, simply select the table name, right click on it, and select 'drop table' option. On confirmation window, select 'drop now' option to instantly delete the table from the database.
More from User
08:08
MySQL Workbench Database Export and Import
phpsword
04:19
MySQL Workbench Insert, Read, Update, Delete Data Rows
phpsword
07:34
MySQL Workbench Create, Alter, Drop Table
phpsword
03:38
MySQL Workbench Create, Alter, Drop Database
phpsword
04:21
MySQL Workbench Add User and Connect to Database
phpsword
Related Videos
03:38
MySQL Workbench Create, Alter, Drop Database
phpsword
06:05
MySQL Database training- 31 - ALTER _ DROP _ RENAME TABLE
LearnFast
10:44
Microsoft SQL Server 2017 Training - Create, Alter, Drop Table Using SQL Syntax - Part 8
Valiveti Sekhar
04:43
Microsoft SQL Server 2017 Training - Create, Alter, Drop Table Using GUI - Part 9
Valiveti Sekhar
02:34
MySQL Programming Create Database creating a database using sql using MySQL Workbench how to
Hamp Arvel
04:49
MySQL Stored Procedures create SQL stored procedures using MySQL Workbench SQL Programming how to
Kadeem York