update products
set OrderNumber=OrderNumber+1
where STRCMP(Name, 'bla') = 1;
Eu entendi errado o seu ponto. Você pode tentar algo assim?
SET @rownum:=0;
update
set [email protected]:[email protected] + 1
from products
order by Name;
update products
set OrderNumber=OrderNumber+1
where STRCMP(Name, 'bla') = 1;
SET @rownum:=0;
update
set [email protected]:[email protected] + 1
from products
order by Name;