Re: Re: MySQL update subquery replacement

2002-07-23 Thread Egor Egorov
Steve, Tuesday, July 23, 2002, 7:36:39 AM, you wrote: S> Can anyone tell me how do achieve the following in MySQL: S> Update oitems S> SET Pstatus = SELECT product.Pstatus from products S> WHERE oitems.Pstatus not like "%Printed%" S>AND oitems.ProdCode=products.Code S> i.e.

MySQL update subquery replacement

2002-07-22 Thread Steve Lane
OOps somehow my last request got re: on the Subject Can anyone tell me how do achieve the following in MySQL: Update oitems SET Pstatus = SELECT product.Pstatus from products WHERE oitems.Pstatus not like "%Printed%" AND oitems.ProdCode=products.Code i.e. I need to update all o

Re: MySQL update subquery replacement

2002-07-22 Thread Steve
Can anyone tell me how do achieve the following in MySQL: Update oitems SET Pstatus = SELECT product.Pstatus from products WHERE oitems.Pstatus not like "%Printed%" AND oitems.ProdCode=products.Code i.e. I need to update all order item status flields that have not been printe