table structure更新adhoc_answer_crpinspection_archive 设置答案=“是” 在哪里( 选择 * 来自adhoc_answer_crpinspection_archive 在哪里q_slno IN('15','17','19') 并且回答='是' ) AND q_slno = '14';
答案 0 :(得分:0)
您可以尝试使用存在的
UPDATE adhoc_answer_crpinspection_archive
SET answer='YES'
WHERE exists(
SELECT 1
FROM adhoc_answer_crpinspection_archive
WHERE q_slno IN('15','17','19')
AND answer='YES'
)
AND q_slno='14'