批量修改用户积分的SQL语句
本帖最后由 IsaacZ 于 2010-8-17 01:10 编辑发帖数为0,则威望值清零:
update cdb_members set extcredits1=0 where posts<1;
发帖数为0,则金钱数清零:
update cdb_members set extcredits2=0 where posts<1;
发帖数为0,且贡献值大于10,则贡献值重设为5:
update cdb_members set extcredits3=5 where posts<1 and extcredits3>10;
页:
[1]