The document outlines SQL commands for creating and managing a customer table in a database. It includes commands for inserting data, altering the table structure, and renaming the table. Additionally, it demonstrates how to drop the table after performing various operations.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
9 views3 pages
Name 1
The document outlines SQL commands for creating and managing a customer table in a database. It includes commands for inserting data, altering the table structure, and renaming the table. Additionally, it demonstrates how to drop the table after performing various operations.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3
Name:ghada mohamed mostafa
ID:200047779
CREATE TABLE customer (
Customer_ID INT AUTO_INCREMENT PRIMARY KEY, Name VARCHAR(50), Nationality VARCHAR(50) DEFAULT 'Egyptian', Zip INT CHECK (Zip > 0), Email VARCHAR(100) );
INSERT INTO customer (Name, Nationality, Zip, Email)