UPDATE wkwke.tbTeachingV3 teaching SET teaching.fdSubjectID = (
SELECT fdValue FROM
(SELECT teaching1.id, subtype.fdValue
FROM wkwke.tbTeachingV3 teaching1
LEFT JOIN wkctn.tbContent content
ON teaching1.fdPrepareID=content.id
LEFT JOIN wkctn.tbInteger subtype
ON subtype.fdContentID = content.id
WHERE subtype.fdAttributeID = 36
) newSubject WHERE newSubject.id = teaching.id
)
时间: 2024-10-12 16:15:23