나는 (이 알아낼 수있는 동안 나를 데려가는) 이것을 얻으려고 노력하고 있지만 작동하도록 업데이 트와 메신저 블랭킹 내포 된 쿼리가 필요해 보인다. 모든 팁/조언을 크게 주시면 감사하겠습니다.중첩 된 쿼리 업데이트
update `deal_change_log`
set new_value = 'Paying' and old_value = 'Null'
where id in (select item_id from deal_change_log
where field_key = '458a901560dc06efb78fe365b951dacd3a6a1a11'
and `old_value` = 'billing details entered'
and `new_value` = 'paying'
and item_id not in (select item_id from `deal_change_log` d2 where d2.`field_key` = '458a901560dc06efb78fe365b951dacd3a6a1a11'
and d2.`log_time` > `log_time`)
order by item_id);
추가/태그 DBMS 서버 –
주 일부 샘플 데이터, – Pirate
는 보관하지 마십시오 NULL의 경우 NULL 텍스트, 즉'old_value = Null '을 수행합니다. – jarlh