Re: Problem with DELETE USING

2003-11-05 Thread Victoria Reznichenko
Wednesday, November 05, 2003, 1:46:13 PM, Bamelis Steve wrote: BS> Hi Victoria, BS> I just found a manual for my version. BS> Seems that 'USING' doesn't exist in this version. BS> But I really need to be able to delete rows from my source table with BS> specific criteria from my destination table

Re: Problem with DELETE USING

2003-11-05 Thread Victoria Reznichenko
"Bamelis Steve" <[EMAIL PROTECTED]> wrote: > > I'm a newbie when it comes to mySQL. > > I have the following command. > > DELETE FROM tblTest2 > > USING tblTest2,tblTest > > WHERE tblTest.Name = tblTest2.Name > > AND tblTest.URL = tblTest2.URL > > AND tblTest.Comment = tblTest2.Comment >

Re: Problem with DELETE USING

2003-11-05 Thread Leo Huang
Bamelis, The error message doesn't seem to match your SQL... It only shows up to 'AND tblTest.URL = tblT' but your SQL is 'AND tblTest.Comment = tblTest2.Comment' Is that a problem?? An example from MySQL manual is 'DELETE FROM t1,t2 USING t1,t2,t3 WHERE t1.id=t2.id AND t2.id=t3.id' Leo

Problem with DELETE USING

2003-11-05 Thread Bamelis Steve
Hi, I'm a newbie when it comes to mySQL. I have the following command. DELETE FROM tblTest2 USING tblTest2,tblTest WHERE tblTest.Name = tblTest2.Name AND tblTest.URL = tblTest2.URL AND tblTest.Comment = tblTest2.Comment I get the following error: You have an error in your SQL sy