Update sqlCode
This commit is contained in:
parent
b4851455dd
commit
e241613a15
1 changed files with 3 additions and 4 deletions
7
sqlCode
7
sqlCode
|
@ -7,17 +7,16 @@ DROP TABLE IF EXISTS Orders;
|
||||||
DROP TABLE IF EXISTS Customer;
|
DROP TABLE IF EXISTS Customer;
|
||||||
|
|
||||||
CREATE TABLE Customer (
|
CREATE TABLE Customer (
|
||||||
customer_id INT AUTO_INCREMENT PRIMARY KEY,
|
name VARCHAR(255) PRIMARY KEY,
|
||||||
name VARCHAR(255),
|
|
||||||
address VARCHAR(255)
|
address VARCHAR(255)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE Orders (
|
CREATE TABLE Orders (
|
||||||
order_id INT AUTO_INCREMENT PRIMARY KEY,
|
order_id INT AUTO_INCREMENT PRIMARY KEY,
|
||||||
customer_id INT,
|
customer_name VARCHAR(255),
|
||||||
delivery_date DATE,
|
delivery_date DATE,
|
||||||
order_date DATE,
|
order_date DATE,
|
||||||
FOREIGN KEY (customer_id) REFERENCES Customer(customer_id)
|
FOREIGN KEY (customer_name) REFERENCES Customer(name)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE Cookie (
|
CREATE TABLE Cookie (
|
||||||
|
|
Loading…
Reference in a new issue