if info cached - your changes to mssql database will be reverted
query must be something like this
if exists (select * from user_item where char_id = @char_id and item_type = 57 and warehouse = 1)
update user_item set amount = amount+1000000 where char_id = @char_id and item_type = 57 and warehouse = 1)
else
insert into user_item (char_id, item_type, amount, enchant, eroded, bless, ident, wished, warehouse) values (@char_id, 57, 1000000, 0, 0, 0, 0, 0, 1)
|