MySQL Forums
Forum List  »  Newbie

can't get assignment to work
Posted by: Kier Heyl
Date: May 26, 2005 08:41AM

I'm using mysql front to connect to a version 4.0.16 database and I'm trying to use the assignment operator, yet it doesn't seem to recognize it. I can do the following:

set @index = 0;

But this doesn't work:

set @index := 0;

This doesn't work:

select @index := id from arrangers where name = 'Bob';

And this obviously returns 0 because it's a comparison:

select @index = id from arrangers where name = 'Bob';

Any ideas why the := assignment operator isn't working?

-Kier

Options: ReplyQuote


Subject
Written By
Posted
can't get assignment to work
May 26, 2005 08:41AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.