

In this MySQL Tutorial, we have learnt how to create table in MySQL Database. To check if the table is created, we can use sql query, “ SHOW TABLES “ +-+


As all table names are unique, we will just ignore the tableschema names in MySQL and only use the database’s name: BikeStores. name is a column that represents name of student and holds a maximum of 50 characters In MySQL databases and tableschemas are synonyms.CREATE TABLE students (name VARCHAR(50), rollno INT) To create a table in a database using mysql prompt, first select a database using ‘USE ’.Ĭonsider a database “studentsDB” in MySQL, in which we shall create a table called students with properties (columns) – Name and Roll Number. datatype : type of the data, the column is going to hold.Syntax to create a table in MySQL database is given below. Integrate a MySQL Database Guided Online, Self-Paced. With the chosen database expanded in the SCHEMAS tab, right click on Tables and select Create Table : Enter the table name at the top (next to Name: ) and add.
