1# Creates a Simple User table
2# Uses an auto-incrementing primary key as userId
3
4CREATE TABLE user (
5 userId INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
6 username VARCHAR(100),
7 password VARCHAR(100)
8) ENGINE=InnoDB;
1create table tutorials_tbl(
2 tutorial_id INT NOT NULL AUTO_INCREMENT,
3 tutorial_title VARCHAR(100) NOT NULL,
4 tutorial_author VARCHAR(40) NOT NULL,
5 submission_date DATE,
6 PRIMARY KEY ( tutorial_id )
7);
8
1# updated dec 2020
2# Creates a Simple User table
3# Uses an auto-incrementing primary key as userId
4
5CREATE TABLE user (
6 userId INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
7 username VARCHAR(100),
8 password VARCHAR(100)
9) ENGINE=InnoDB;
1CREATE TABLE nom_de_la_table
2(
3 colonne1 type_donnees,
4 colonne2 type_donnees,
5 colonne3 type_donnees,
6 colonne4 type_donnees
7)