|
很多朋友私服都开了有一段时间了,里面有许多无用的帐号其实只要有一点sql语法基础很容易就可以把多余的帐号删除的,以下是删除没有100级人物的帐号的方法,用之前请记得备份: 在查询分析器里依次执行以下语句: 1、delete
from memb_info where memb___id not in (select DISTINCT accountid from
character where clevel>=100) ;这句是删除帐号 2、delete from
warehouse where accountid not in (select DISTINCT accountid from
character where clevel>=100) ;这句是删除仓库 3、delete from character where
accountid not in (select memb___id from memb_info) ;这句是删除人物
以上语句执行顺序不能错,如果出现以下错误 服务器: 消息 446,级别 16,状态 9,行
1 无法解决 equal to
操作的排序规则冲突。 请点设计warehouse,character,memb_info表中accountid,accountid,memb___id字段将排序规则改成数据库默认。
|