"Kim G. Pedersen" <[EMAIL PROTECTED]> wrote:
> Has look alot around , and tried a lot without success
> 
> how to do this :
> Delete  from  pproductMix PM  where PM.mixID in (select ID from pmix
> where mixno=72000)
> 
> I would like a solution with and without subqueries
> 

DELETE FROM pproductMix USING pproductMix, pmix
WHERE pproductMix.mixID=pmix.ID AND pmix.mixno=72000;

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/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [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