|
LastName |
FirstName |
Address |
City |
ABC |
EFG |
1, |
|
XYZ |
EFG |
3, |
|
EFG |
ABC |
2, |
|
CREATE |
The CREATE statement is used to create a database or a table. To create a database we use the following syntax CREATE DATABASE <database name> To create a table in the database we use the CREATE TABLE query. The syntax for the CREATE TABLE query is CREATE TABLE <table name> (column name1 data type, column name2 data type, column name3 data type....) The below example creates a table called Student with the fields LastName, FirstName, Address, City. CREATE TABLE Student (LastName varchar, FirstName varchar, Address varchar, City varchar) |