how to create a table in mysql
-- 'CREATE TABLE' followed by the name of the table.
-- In round brackets, define the columns.
CREATE TABLE `test_table`
(
id INT(10) PRIMARY KEY,
username VARCHAR(50) NOT NULL
);
how to create a table in mysql
-- 'CREATE TABLE' followed by the name of the table.
-- In round brackets, define the columns.
CREATE TABLE `test_table`
(
id INT(10) PRIMARY KEY,
username VARCHAR(50) NOT NULL
);
creating table in MySQL
#Assuming that there is a database called MyDatabase
#creates a table called TableName, with columns Name, Age, and Class
Use MyDatabase;
create table TableName(
No. int primary key,
Name varchar(50),
Age int,
Class varchar(15));
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us