ft222 发表于 2009-1-21 12:13:54

如何删除数据库中已有的账号信息

如题,~

chencjh 发表于 2009-1-21 12:22:42

truncate table account_char
go
truncate table currentuser
go
truncate table deleted_userdata
go
truncate table knights
go
truncate table knights_rating
go
truncate table knights_user
go
truncate table tb_user
go
truncate table userdata
go
truncate table USERDATA_SKILLSHORTCUT
go
truncate table KNIGHTS_ALLIANCE
go




truncate table BK_FRI_USERDATA
go
truncate table BK_MON_USERDATA
go
truncate table BK_SAT_USERDATA
go
truncate table BK_SUN_USERDATA
go
truncate table BK_THU_USERDATA
go
truncate table BK_TUE_USERDATA
go
truncate table BLOCKED_USERDATA
go
truncate table USER_EDITOR_ITEM
go
truncate table np_kings
go
truncate table np_kings2
go
truncate table PREMIUM_SERVICE
go




truncate table WAREHOUSE
go
truncate table ELMO_RANK
go
truncate table KARUS_RANK
go
truncate table USER_SAVED_MAGIC
go
truncate table HACKTOOL_USERLOG
go
truncate table HERO_USER
go
truncate table DUPE_CHECK
go
truncate table LEVEL_CHART
go
truncate table LEVEL_CHART_WED
go

ft222 发表于 2009-1-21 12:27:40

服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'account_char',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'currentuser',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'deleted_userdata',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'knights',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'knights_rating',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'knights_user',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'tb_user',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'userdata',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'USERDATA_SKILLSHORTCUT',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'KNIGHTS_ALLIANCE',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 5
未能截断表 'BK_FRI_USERDATA',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'BK_MON_USERDATA',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'BK_SAT_USERDATA',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'BK_SUN_USERDATA',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'BK_THU_USERDATA',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'BK_TUE_USERDATA',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'BLOCKED_USERDATA',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'USER_EDITOR_ITEM',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'np_kings',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'np_kings2',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'PREMIUM_SERVICE',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 5
未能截断表 'WAREHOUSE',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'ELMO_RANK',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'KARUS_RANK',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'USER_SAVED_MAGIC',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'HACKTOOL_USERLOG',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'HERO_USER',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'DUPE_CHECK',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'LEVEL_CHART',因为此表在数据库 'master' 中不存在。
服务器: 消息 4701,级别 11,状态 1,行 1
未能截断表 'LEVEL_CHART_WED',因为此表在数据库 'master' 中不存在。

ft222 发表于 2009-1-21 12:29:09

妈的,弄错了
谢谢你啊,已经好了

chencjh 发表于 2009-1-21 12:32:54

代码分三段 运行

不要一次性运行

ft222 发表于 2009-1-21 12:37:47

SQL弄得不错啊
如果我要找ITEM表里的指定代码
要什么命令呢

flyquickly 发表于 2009-1-21 12:52:20

select * from item where ____=_____

ft222 发表于 2009-1-21 12:53:33

这是什么呢???

flyquickly 发表于 2009-1-21 12:59:45

select * from item where num = 物品代码

ft222 发表于 2009-1-21 13:08:21

谢谢你啊,学会了
页: [1] 2
查看完整版本: 如何删除数据库中已有的账号信息