Re: deleting from multiple tables syntax error

2004-11-10 Thread cmetcalf
Turns out to be 4.1.7 This suggestion fixed my query, thanks. I'd tried that approach yesterday, but it was on an older version of MySQL (on our non-production server; I wasn't paying attention to the versions of MySQL betw. our test and production servers) - so my previous attempts with this syn

Re: deleting from multiple tables syntax error

2004-11-10 Thread Michael Stassen
Did you upgrade to 4.0.17 or 4.1.7? In 4.1, you have to use the alias between FROM and USING: DELETE FROM rls USING rsrc_linx_specialty rls,... This is documented at the bottom of the manual page you referenced. Michael [EMAIL PROTECTED] wrote: I had a working query that suddenly doesn't work

Re: Deleting from multiple tables

2003-10-30 Thread Director General: NEFACOMP
What version of MySQL are you using? Ver 4.1 supports sub-queries. So, you may issue: DELETE FROM table2 WHERE msg_id IN( SELECT msg_id FROM table1 WHERE ((TO_DAYS(NOW()) - TO_DAYS(date_column)) > 45) ) Thanks Emery - Original Message - From: "Luis Lebron" <[EM

Re: Deleting from multiple tables

2002-05-23 Thread Mark
- Original Message - From: "Steve Buehler" <[EMAIL PROTECTED]> To: "mysql" <[EMAIL PROTECTED]> Sent: Thursday, May 23, 2002 8:45 PM Subject: Deleting from multiple tables > I am using MySQL with a PHP front end. Is there a better way to delete > from multiple tables than the following?

RE: Deleting from multiple tables

2002-05-23 Thread Jon Frisby
> [snip] > I am using MySQL with a PHP front end. Is there a better way to delete > from multiple tables than the following? > $result=mysql_query("DELETE FROM team WHERE team_id = '$team_id'"); > $result=mysql_query("DELETE FROM conflicts WHERE team_id = > '$team_id'"); > $resu

Re: Deleting from multiple tables

2002-05-23 Thread Steve Buehler
At 03:34 PM 5/23/2002 -0400, Keith C. Ivey wrote: >On 23 May 2002, at 12:48, Steve Buehler wrote: > > > I am using MySQL with a PHP front end. Is there a better way to delete > > from multiple tables than the following? > > $result=mysql_query("DELETE FROM team WHERE team_id = '$team_id'");

Re: Deleting from multiple tables

2002-05-23 Thread Keith C. Ivey
On 23 May 2002, at 12:48, Steve Buehler wrote: > I am using MySQL with a PHP front end. Is there a better way to delete > from multiple tables than the following? > $result=mysql_query("DELETE FROM team WHERE team_id = '$team_id'"); > $result=mysql_query("DELETE FROM conflicts WHERE

RE: Deleting from multiple tables

2002-05-23 Thread Jay Blanchard
[snip] I am using MySQL with a PHP front end. Is there a better way to delete from multiple tables than the following? $result=mysql_query("DELETE FROM team WHERE team_id = '$team_id'"); $result=mysql_query("DELETE FROM conflicts WHERE team_id = '$team_id'"); $result=mysql