Lecture 5 DDL (1)
Lecture 5 DDL (1)
Main Commands:
◦ Create – used to create a new table in the database
◦ Alter – used to make changes in the already created tables
◦ Drop – used to delete an existing table
Getting Started …
Before creating a table in the database, we need to create a database itself:
◦ Example:
◦ Create database Company;
Use databaseName ;
Example:
Use Company;
ALTER TABLE student MODIFY Address Text NOT NULL DEFAULT ‘LAHORE’;