1. 首页
  2. 考试认证
  3. 其它
  4. Hungry-in-Oxford

Hungry-in-Oxford

上传者: 2024-07-13 03:23:06上传 ZIP文件 4.16MB 热度 5次

饥饿的牛津DB Schema这样Craig就不必再查看他的电子邮件了

CREATE TABLE Restaurant (

tName VARCHAR(50) NOT NULL,

tType VARCHAR(50),

tAddress VARCHAR(50),

tTelephone VARCHAR(50),

tDelievery BOOLEAN,

tPRIMARY KEY (Name)

);

CREATE TABLE FoodItems (

tName VARCHAR(50),

tFId INT NOT NULL,

tRName VARCHAR(50) NOT NULL,

tPrice DECIMAL(10,2),

tPRIMARY KEY (Fid),

tFOREIGN KEY (Rname) REFERENCES Restaurant (Name)

);

用户评论