no rows returned picture, me sql code
我做了插入,应用了更改。 这是一个剧本:
-- Table `db`.`TrainIn`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `db`.`TrainIn` (
`TrNumInRec` INT NOT NULL,
`DateIn` VARCHAR(45) NULL,
`TrNum` INT NULL,
`WayInNum` INT NULL,
PRIMARY KEY (`TrNumInRec`),
INDEX `WayInNum_idx` (`WayInNum` ASC),
CONSTRAINT `WayInNum`
FOREIGN KEY (`WayInNum`)
REFERENCES `db`.`Towns` (`TownName`)
ON DELETE CASCADE
ON UPDATE CASCADE)
ENGINE = InnoDB;