Resturent Final
Resturent Final
Resturent Final
+---------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------------+-------------+------+-----+---------+-------+
| Customer_Name | char(20) | YES | | NULL | |
| Phone_Number | int | YES | | NULL | |
| Customer_ID | varchar(20) | NO | PRI | NULL | |
| Address | varchar(30) | YES | | NULL | |
| Total_Amount | int | YES | | NULL | |
+---------------+-------------+------+-----+---------+-------+
4 rows in set (0.00 sec)
+---------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------------+-------------+------+-----+---------+-------+
| Customer_Name | char(20) | YES | | NULL | |
| Phone_Number | int | YES | | NULL | |
| Customer_ID | varchar(20) | NO | PRI | NULL | |
| Address | varchar(30) | YES | | NULL | |
| Total_Amount | int | YES | | NULL | |
+---------------+-------------+------+-----+---------+-------+
4 rows in set (0.00 sec)
EMPLOYEE
mysql> insert into Employee
values('Vinayak','v','Kala','781344','M','731 FondrenHouston');
Query OK, 1 row affected (0.34 sec)
M
ysql> insert into Employee
values('Mukesh','A','Ambani','537352','M','291BerryBellaire');
Query OK, 1 row affected (0.20 sec)
DISH
mysql> insert into Dish values('1','Neer Dosa','80','1992');
Query OK, 1 row affected (0.15 sec)
CUSTOMER
+-------------------+--------------+-------------+---------+--------------+
| Customer_Name | Phone_Number | Customer_ID | Address | Total_Amount |
+-------------------+--------------+-------------+---------+--------------+
| Vijay Devarakonda | 00001 | VIP@001 | USA | 1000 |
| Rajinikanth Ka | 73781 | MIP@145 | USA | 200 |
| Kabir Singh | 523428 | MIP@877 | USA | 330 |
| Allu Arjun | 82321 | MIP@897 | USA | 1200 |
| Sudeep K | 622476 | TAM@123 | USA | 350 |
+-------------------+--------------+-------------+---------+--------------+
5 rows in set (0.00 sec)
ALTER COMMAND
mysql> desc Customer;
+---------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------------+-------------+------+-----+---------+-------+
| Customer_Name | char(20) | YES | | NULL | |
| Phone_Number | int | YES | | NULL | |
| Customer_ID | varchar(20) | NO | PRI | NULL | |
| Address | varchar(30) | YES | | NULL | |
| Total_Amount | int | YES | | NULL | |
+---------------+-------------+------+-----+---------+-------+
5 rows in set (0.01 sec)
AFTER
UPDATE COMMAND
AFTER
DELETE COMMAND
AFTER
DROP DATABASE
mysql> DROP database Restaurant ;
Query OK, 3 rows affected (2.46 sec)
PRIMARY KEY CONSTRAINT
mysql> desc Employee;
+---------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------+-------------+------+-----+---------+-------+
| Fname | char(20) | YES | | NULL | |
| Minit | char(20) | YES | | NULL | |
| Lname | char(20) | YES | | NULL | |
| Emp_id | int | NO | PRI | NULL | |
| Gender | char(3) | YES | | NULL | |
| Address | varchar(30) | YES | | NULL | |
+---------+-------------+------+-----+---------+-------+
6 rows in set (0.55 sec)
Employee
Fname Minit Lname Emp_id Gender Address
Dish
Dish_id Dish_name Dish_pice Emp_id
Customer
Customer_Name Phone_Number Customer_ID Address
DATABASE FOR RESTAURANT
Database changed