"Cecil Brand" <[EMAIL PROTECTED]> wrote:
> 
> I'm using:
> 
>   mysql  Ver 11.18 Distrib 3.23.53a, for pc-linux-gnu (i686)
> 
> I did the following query succesfully
> 
> SELECT * FROM staff_user
> LEFT OUTER JOIN staff ON SCode1 = staff_SCode 
> WHERE SCode1 IS NULL
> 
> It returned all the row that was not in the right table.
> 
> Know I want them deleted, but using:
> 
> DELETE FROM staff_user
> LEFT OUTER JOIN staff ON SCode1 = staff_SCode 
> WHERE SCode1 IS NULL
> 
> gives me an error:
> 
> mysql> DELETE FROM staff_user LEFT OUTER JOIN staff ON SCode1 =
> staff_SCode WHERE SCode1 IS NULL;
> ERROR 1064: You have an error in your SQL syntax near 'LEFT OUTER JOIN
> staff ON SCode1 = staff_SCode WHERE SCode1 IS NULL' at line 1
> 
> what is going on here and can someone help me??????

3.23.53 doesn't support multi-table deletes. It's supported since 4.0:
        http://www.mysql.com/doc/en/DELETE.html


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com





-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to