MySQL Forums
Forum List  »  Newbie

Re: Warning 1287: setting variables deprecated
Posted by: Tim Bomgardner
Date: September 05, 2020 10:23PM

Thanks for replying, but I don't think this is going to solve my problem. I'm not looking to set the value in a single row. I need each of many rows to contain an automatically generated incrementing value, starting at 0. In other words, in the first row, order = 0, in the second row, order = 1, and so on. The deprecated feature, in this case @i := @i + 1 in the select, does exactly what I need. I've taken a different approach to solving the problem that doesn't require setting a variable. Thanks again.

Options: ReplyQuote


Subject
Written By
Posted
Re: Warning 1287: setting variables deprecated
September 05, 2020 10:23PM


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.