[2018-03-28 22:05:05,767] ERROR [ 1] [ErrorMessageSendForm:SetInfo] - Error was thrown:
Ссылка на объект не указывает на экземпляр объекта. select ad.customerId cst
, count(*) cnt , max(ad.list_index) mxt
from CustomersAddresses as ad group by ad.customerId having count(*) > 1 and max(ad.list_index) >= count(*) select list_index from CustomersAddresses
where customerId=''
order by list_index 1 0
2 1
3 3 update CustomersAddresses
set list_index=2 //Той який має бути
where
customerId='' //айді з першого скрипта
and
list_index =3 //Той який зараз