PHP Create Table
Creating tables.
PHP Create MySQL Table
The CREATE TABLE statement is used to create a table in MySQL.
We will create a table named "MyGuests", with five columns: "id", "firstname", "lastname", "email" and "reg_date":
NOT NULL- Each row must contain a value for that column, null values are not allowedDEFAULT value- Set a default value that is added when no other value is passedUNSIGNED- Used for number types, limits the stored data to positive numbers and zeroAUTO INCREMENT- PHP automatically increases the value of the field by 1 each time a new record is addedPRIMARY KEY- Used to uniquely identify the rows in a table