标签: mysql
基本上我需要做这样的事情
INSERT INTO PROMISE (IDRESERVATION, IDPROYECT, NUMBER, STATE, DATEPROMISE) VALUES (...) WHERE IDRESERVA NOT IN ( SELECT IDRESERVA FROM PROMISE WHERE IDRESERVATION = 1 )
预期是您不能输入具有相同ID保留的另一个“承诺”。换句话说,idreservation应该只在单个“承诺”中生成