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...

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

Reply via email to