Create Table in MySQL

Create Table in MySQL:

(1) In the previous blog we learned about how to create a database in MySQL. Now we have learned how to create a table in MySQL.

(2) In order to create a table in MySQL, you have to go to the database that you have created. Expand the database and right-click on “Tables” and select “Create Table” as shown below.

create table in mysql

(3) After that, you have to give the Table a name under the “Table Name” field (for example, student_table) and use default charset/collation and engine. Now go to the Column Name section to add a “Colum” in the table. Double-click below the column name field to add a column to the table as shown below.

add table name in mysql

(4) In this example, we have added four columns to the table as shown below.

mysql add column in table

(5) After filling in all the details now click on the Apply button.

table created in mysql

(6) Now the query for the table and column is automatically created and click again on the Apply button.

mysql table and column is created

(7) After that you find the SQL script was successfully applied to the database and then click on Finish as shown below.

table successfully created in mysql

(8) Now the table is created and a column is added to it. In the below figure, the column field is shown as null.

mysql table is created and a column added to it

(9) In order to add data to the column fields double click on it and enter the data and click on Apply.

add column data in mysql

(10) Now the query for the column data is automatically created and click again on the Apply button.

query for the column data is automatically created in mysql

(11) After that you find the SQL script was successfully applied to the database and then click on Finish as shown below.

SQL script was successfully applied to the database

(12) In this way you can create a table and add a column to it in MySQL.


Basic Components of Computer System
Malicious Software (Malware)
Client-Server Architecture
What is Virtual Reality?
FTP (File Transfer Protocol)
Artificial Intelligence (AI)
MySQL– Wikipedia

Comments (No)

Leave a Reply