List:General Discussion« Previous MessageNext Message »
From:bkline Date:September 27 1999 5:06pm
Subject:RE: More Complex UPDATE
View as plain text  
You need a FROM ... clause.

UPDATE  products
SET     Weight = '0.5'  /* is this really a character column? */
FROM    products, 
        rank
WHERE   products.code = rank.code
AND     category = 'bell';

Unfortunately, it doesn't look as if this syntax is supported
by MySQL (based on a review of the manual and some experimenting).

Bob

-----Original Message-----
From: Ben-Nes Michael [mailto:miki@stripped]
Sent: Monday, September 27, 1999 10:40 AM
To: Mysql
Subject: More Complex UPDATE


Hi
Im trying to:
update products SET Weight="0.5" where (products.code = rank.code) and
category= "bell";

then its says: Unknown table 'rank' in where clause

What can i do to make this UPDATE sucessfull ?

Thread
More Complex UPDATEBen-Nes Michael27 Sep
  • RE: More Complex UPDATEbkline27 Sep
    • Re: More Complex UPDATEBen-Nes Michael27 Sep
    • Re: More Complex UPDATEMartin Ramsch28 Sep
  • Re: More Complex UPDATEBen-Nes Michael4 Oct
    • Re: More Complex UPDATEMartin Ramsch5 Oct
    • Re: More Complex UPDATEMartin Ramsch5 Oct