문제

How do I force MySQL Workbench, when using a foreign key, to perform an INSERT to my referenced table before the INSERT to the referencing table. Without the obvious solution of editing the generated SQL by hand?

도움이 되었습니까?

해결책

William,

Unfortunately, MySQL workbench doesn't work this way. You'd have to write the SQL yourself to do this. If you need this often, you might think about writing a stored procedure that handles this for you.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top