djbaxter
14 Mar 2007, 18:05
What is wrong with this query?
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I am trying to run it from this PHP utility but it also gives me an error run from phpMyAdmin:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
This version seems to work:
DELETE FROM vbpmtext, vbpm, vbpmreceipt USING vbpmtext, vbpm, vbpmreceipt WHERE (vbpm.pmid = vbpmreceipt.pmid) AND (vbpm.pmtextid = vbpmtext.pmtextid) AND vbpmtext.dateline < $time
in the sense that it doesn't generate a syntax error. Anyone see anything wrong with that?
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I am trying to run it from this PHP utility but it also gives me an error run from phpMyAdmin:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
This version seems to work:
DELETE FROM vbpmtext, vbpm, vbpmreceipt USING vbpmtext, vbpm, vbpmreceipt WHERE (vbpm.pmid = vbpmreceipt.pmid) AND (vbpm.pmtextid = vbpmtext.pmtextid) AND vbpmtext.dateline < $time
in the sense that it doesn't generate a syntax error. Anyone see anything wrong with that?