經安全檢測,此網站為安全網站,請放心前往原始網址!

SQL UPDATE SET one column to be equal to a value in a related table referenced by a different column

Without the update-and-join notation (not all DBMS support that), use: UPDATE QuestionTrackings SET QuestionID = (SELECT QuestionID FROM AnswerTrackings WHERE AnswerTrackings.AnswerID = QuestionTrackings ...

stackoverflow.com

網址安全性掃描由 google 提供