这是两个非常简单的mysql语句(按此顺序发生)。出于某种原因,第二次交易经常陷入僵局。有谁知道为什么?
$query = "
DELETE FROM queues
WHERE queuetype='autoresponder'
AND recipient={$subscriberid}
";
$this->Db->Query($query);
$query = "
INSERT INTO queues (queueid, queuetype, ownerid, recipient, processed)
SELECT queueid, 'autoresponder', ownerid, {$subscriberid}, 0
FROM autoresponders
WHERE listid={$listid}
AND active<>0
";
$status = $this->Db->Query($query);