0

I have a statement like this and it works fine, but there is a warning:

 update addresses_not_synced
    SET lock_until =DATE_ADD(now(), interval 60 second)
    where (lock_until < now()
        or lock_until is null)
      and (SELECT @selectedAddressesForSync :=
                          CONCAT_WS(',', concat(id, "_", address),
                                    @selectedAddressesForSync))
    limit 5;

and the warning is :

Setting user variables within expressions is deprecated and will be removed in a future release. Consider alternatives: 'SET variable=expression, ...', or 'SELECT expression(s) INTO variables(s)'.

mysql doesn't accept none user variable in this position. Is there any suggestion for this?

4

0 回答 0