create table mysql query
create table tutorials_tbl(
tutorial_id INT NOT NULL AUTO_INCREMENT,
tutorial_title VARCHAR(100) NOT NULL,
tutorial_author VARCHAR(40) NOT NULL,
submission_date DATE,
PRIMARY KEY ( tutorial_id )
);
create table mysql query
create table tutorials_tbl(
tutorial_id INT NOT NULL AUTO_INCREMENT,
tutorial_title VARCHAR(100) NOT NULL,
tutorial_author VARCHAR(40) NOT NULL,
submission_date DATE,
PRIMARY KEY ( tutorial_id )
);
create table mysql
CREATE TABLE IF NOT EXISTS `sys_user_details` (
user_detail_id INT(11) AUTO_INCREMENT,
user_id INT(11),
name VARCHAR(100) NOT NULL,
email VARCHAR(200) NOT NULL,
education VARCHAR(100) DEFAULT NULL,
skills VARCHAR(100) DEFAULT NULL,
experience VARCHAR(100) DEFAULT NULL,
CONSTRAINT PK_sys_user_details PRIMARY KEY (user_detail_id),
CONSTRAINT FK_sys_user_details_user_id FOREIGN KEY (user_id)
REFERENCES sys_user(user_id)
ON UPDATE RESTRICT ON DELETE CASCADE
);
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