Ooops!! This seems to be a bug in EMS MySQL Manager... Sorry to bother you all...
Regards Peter -----Original Message----- From: Paul DuBois [mailto:[EMAIL PROTECTED]] Sent: do 24 jan 2002 18:51 To: Peter Bremer; Mysql (E-mail) Subject: Re: Problem with UPDATE and User Variables At 18:32 +0100 1/24/02, Peter Bremer wrote: >Hi, > >Can anybody explain why the following does not work? > > SELECT @variable := value1; > UPDATE table SET field1 = @variable WHERE field2 = value2; > >The result is always that field1 is set to NULL... Works for me, if I substitute a real value for value1. Your first statement as shown above isn't actually legal. How do you establish what value1 is? > >Regards, > Peter Bremer --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php