Drop & Create table stament

A simple mysql documentation of the avans software development notes


Drop Statement


Example


Drop table

DROP Table TableName;

Removes a table from a database


Drop database

DROP DATABASE DatabaseName;

Deletes the whole database


Create statement


Create Database


Create table

syntax

this creates a table with 3 colums Columname is how we want the collum to be called

the datatype speseficy what we would like to be stored in a collums fields for available Datatype check datatype page


Example

this creates a table called peopleinfo with five collums which can store information


Create table from other table


syntax

circle-exclamation

Example

Last updated