1

我正在尝试更新表并将其与源同步,但源不可用,如您在屏幕截图中看到的那样

在此处输入图像描述

脚本是

CREATE  TABLE IF NOT EXISTS `DAHMS`.`Answers` (
  `aid` INT(11) NOT NULL AUTO_INCREMENT ,
  `qid` INT(11) NOT NULL ,
  `sid` INT(11) NOT NULL ,
  `answer` VARCHAR(45) NOT NULL ,
  PRIMARY KEY (`aid`) ,
  INDEX `fk_Answers_Session1_idx` (`sid` ASC) ,
  INDEX `fk_Answers_Questions1_idx` (`qid` ASC) ,
  CONSTRAINT `fk_Answers_Session1`
    FOREIGN KEY (`sid` )
    REFERENCES `DAHMS`.`Session` (`sid` )
    ON DELETE NO ACTION
    ON UPDATE NO ACTION,
  CONSTRAINT `fk_Answers_Questions1`
    FOREIGN KEY (`qid` )
    REFERENCES `DAHMS`.`Questions` (`qid` )
    ON DELETE NO ACTION
    ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = latin1
COLLATE = latin1_swedish_ci
4

0 回答 0