我一直遇到Where注释的问题我在MySQL 8.0.18上有两个表,场地和音乐会,具有这种结构和字段
CREATE TABLE VENUE
(
ID INT NOT NULL AUTO_INCREMENT,
NAME VARCHAR(220) NOT NULL,
IMAGE VARCHAR(240),
ACTIVE BIT NOT NULL DEFAULT 0,
COORDINATES VARCHAR(120),
COUNTRY VARCHAR(120) NOT NULL DEFAULT 'USA',
CITY VARCHAR(220) NOT NULL DEFAULT 'None',
RATING INT NOT NULL DEFAULT 0,
VERSION INT NOT NULL DEFAULT 0,
PRIMARY KEY (ID)
);
CREATE TABLE CONCERT
(
ID INT NOT NULL AUTO_INCREMENT,
NAME VARCHAR(120) NOT NULL,
DESCRIPTION VARCHAR(120) NOT NULL,
FESTIVAL_ID INT,
VENUE_ID INT,
RATING INT NOT NULL DEFAULT 0,
DATE DATETIME,
IMAGE BLOB,
VERSION INT NOT NULL DEFAULT 0,
FOREIGN KEY (FESTIVAL_ID) REFERENCES FESTIVAL (ID),
FOREIGN KEY (VENUE_ID) REFERENCES VENUE (ID),
PRIMARY KEY (ID)
);
紫衣仙女
湖上湖
相关分类