• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Zapytanko SQL

Kavvson

Gdy boli cie glowa wez
Joined
Jun 25, 2008
Messages
1,177
Reaction score
72
Location
Poland
Otoż chcę mieć zapytanie masowe zmienianie itemków

Np w player_items chce zmienić item o id XXXX na YYYY

Dziękuję!


I itemtype jest np 2160 o councie 100 i chce wszystkie zmienic na 50 powiedzmy (2160 itemtype)

UPDATE `ve2`.`player_items` SET `count` = '8' WHERE `player_items`.`player_id` =9 AND `player_items`.`sid` =110;

To jest do jednorazowego typka tak? a jak zrobić masowo że zmienia cc o count 100 na cc o count np. 1
 
Last edited by a moderator:
Thx niby wiem juz jak ale nie wiem jak zrobic by zmienil tylko wartosci o danym Count.. bo takto jedzie mi po wszystkich wiec ten ktory ma 1 bedzie mail 50 count; S a ten co 100 tez 50 nie fer
 
jak ja nie lubię idiotów nazywających się Web Designerami potrafiąc tylko ctrl + c i ctrl + v :}]]
 
UPDATE `ve2`.`player_items` SET `count` = '50' WHERE `itemtype` = '2160' ;

Powinno działać

Rep++
 
UPDATE `ve2`.`player_items` SET `count` = '50' WHERE `itemtype` = '2160' ;

Powinno działać

Rep++

pajac
PHP:
UPDATE `player_items` SET `count` = 50 WHERE `itemtype` = 2160 AND `count` = 100;
 
Back
Top