| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1331 人关注过本帖
标题:服务器: 消息 170,级别 15,状态 1,行 51第 51 行: ',' 附近有语法错误。
取消只看楼主 加入收藏
libin009
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2010-4-21
结帖率:0
收藏
已结贴  问题点数:20 回复次数:1 
服务器: 消息 170,级别 15,状态 1,行 51第 51 行: ',' 附近有语法错误。
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[TBL_CHARACTER_INFO]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[TBL_CHARACTER_INFO]
GO

CREATE TABLE [dbo].[TBL_CHARACTER_INFO] (
    [ID] [int] IDENTITY (1, 1) NOT NULL ,
    [ACCOUNT] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
    [NAME] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
    [CLASS] [tinyint] NOT NULL ,
    [SEX] [tinyint] NOT NULL ,
    [VLEVEL] [smallint] NOT NULL ,
    [MAPNAME] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
    [POSX] [smallint] NOT NULL ,
    [POSY] [smallint] NOT NULL ,
    [HAIR] [tinyint] NOT NULL ,
    [SERVER] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
    [ODATE] [datetime] NOT NULL ,
    [DELFLAG] [tinyint] NOT NULL ,
    [DELDATE] [datetime] NOT NULL ,
    [CREATEDATE] [datetime] NOT NULL ,
    [CUREXP] [int] NOT NULL ,
    [HP] [smallint] NOT NULL ,
    [MP] [smallint] NOT NULL ,
    [MAXHP] [smallint] NOT NULL ,
    [MAXMP] [smallint] NOT NULL ,
    [MINDC] [tinyint] NOT NULL ,
    [MAXDC] [tinyint] NOT NULL ,
    [MINMC] [tinyint] NOT NULL ,
    [MAXMC] [tinyint] NOT NULL ,
    [MINSC] [tinyint] NOT NULL ,
    [MAXSC] [tinyint] NOT NULL ,
    [MINAC] [tinyint] NOT NULL ,
    [MAXAC] [tinyint] NOT NULL ,
    [MINMAC] [tinyint] NOT NULL ,
    [MAXMAC] [tinyint] NOT NULL ,
    [WEIGHT] [smallint] NOT NULL ,
    [HANDWEIGHT] [tinyint] NOT NULL ,
    [BODYWEIGHT] [tinyint] NOT NULL ,
    [GOLD] [int] NOT NULL ,
    [MAPID] [int] NOT NULL ,
    [YUANBAO] [int] NOT NULL ,
    [FLAG1] [int] NOT NULL ,
    [FLAG2] [int] NOT NULL ,
    [FLAG3] [int] NOT NULL ,
    [FLAG4] [int] NOT NULL ,
        [GUILDNAME] [varchar] (50) NOT NULL ,
        [FORGEPOINT] [int] NOT NULL ,
        [PROP1] [int] NOT NULL ,
        [PROP2] [int] NOT NULL ,
        [PROP3] [int] NOT NULL ,
        [PROP4] [int] NOT NULL ,
        [PROP5] [int] NOT NULL ,
        [PROP6] [int] NOT NULL ,
        [PROP7] [int] NOT NULL ,
        [PROP8] [int] NOT NULL
) ON [PRIMARY]
GO

ALTER TABLE [dbo].[TBL_CHARACTER_INFO] WITH NOCHECK ADD
    CONSTRAINT [DF_TBL_CHARACTER_INFO_ACCOUNT] DEFAULT ('') FOR [ACCOUNT],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_NAME] DEFAULT ('') FOR [NAME],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_CLASS] DEFAULT (0) FOR [CLASS],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_SEX] DEFAULT (0) FOR [SEX],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_VLEVEL] DEFAULT (0) FOR [VLEVEL],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_MAPNAME] DEFAULT ('0') FOR [MAPNAME],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_POSX] DEFAULT (300) FOR [POSX],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_POSY] DEFAULT (300) FOR [POSY],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_HAIR] DEFAULT (0) FOR [HAIR],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_SERVER] DEFAULT ('') FOR [SERVER],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_ODATE] DEFAULT (getdate()) FOR [ODATE],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_DELFLAG] DEFAULT (0) FOR [DELFLAG],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_DELDATE] DEFAULT (getdate()) FOR [DELDATE],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_CREATEDATE] DEFAULT (getdate()) FOR [CREATEDATE],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_CUREXP] DEFAULT (0) FOR [CUREXP],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_HP] DEFAULT (0) FOR [HP],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_MP] DEFAULT (0) FOR [MP],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_MAXHP] DEFAULT (0) FOR [MAXHP],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_MAXMP] DEFAULT (0) FOR [MAXMP],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_MINDC] DEFAULT (0) FOR [MINDC],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_MAXDC] DEFAULT (0) FOR [MAXDC],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_MINMC] DEFAULT (0) FOR [MINMC],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_MAXMC] DEFAULT (0) FOR [MAXMC],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_MINSC] DEFAULT (0) FOR [MINSC],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_MAXSC] DEFAULT (0) FOR [MAXSC],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_MINAC] DEFAULT (0) FOR [MINAC],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_MAXAC] DEFAULT (0) FOR [MAXAC],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_MINMAC] DEFAULT (0) FOR [MINMAC],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_MAXMAC] DEFAULT (0) FOR [MAXMAC],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_WEIGHT] DEFAULT (0) FOR [WEIGHT],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_HANDWEIGHT] DEFAULT (0) FOR [HANDWEIGHT],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_BODYWEIGHT] DEFAULT (0) FOR [BODYWEIGHT],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_GOLD] DEFAULT (0) FOR [GOLD],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_MAPID] DEFAULT (0) FOR [MAPID],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_YUANBAO] DEFAULT (0) FOR [YUANBAO],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_FLAG1] DEFAULT (0) FOR [FLAG1],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_FLAG2] DEFAULT (0) FOR [FLAG2],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_FLAG3] DEFAULT (0) FOR [FLAG3],
    CONSTRAINT [DF_TBL_CHARACTER_INFO_FLAG4] DEFAULT (0) FOR [FLAG4],
        CONSTRAINT [DF_TBL_CHARACTER_INFO_GUILDNAME] DEFAULT ('') FOR [GUILDNAME],
        CONSTRAINT [DF_TBL_CHARACTER_INFO_FORGEPOINT] DEFAULT (0) FOR [FORGEPOINT],
        CONSTRAINT [DF_TBL_CHARACTER_INFO_PROP1] DEFAULT (0) FOR [PROP1],
        CONSTRAINT [DF_TBL_CHARACTER_INFO_PROP2] DEFAULT (0) FOR [PROP2],
        CONSTRAINT [DF_TBL_CHARACTER_INFO_PROP3] DEFAULT (0) FOR [PROP3],
        CONSTRAINT [DF_TBL_CHARACTER_INFO_PROP4] DEFAULT (0) FOR [PROP4],
        CONSTRAINT [DF_TBL_CHARACTER_INFO_PROP5] DEFAULT (0) FOR [PROP5],
        CONSTRAINT [DF_TBL_CHARACTER_INFO_PROP6] DEFAULT (0) FOR [PROP6],
        CONSTRAINT [DF_TBL_CHARACTER_INFO_PROP7] DEFAULT (0) FOR [PROP7],
        CONSTRAINT [DF_TBL_CHARACTER_INFO_PROP8] DEFAULT (0) FOR [PROP8],
GO

谢谢
搜索更多相关主题的帖子: 服务器 语法 级别 附近 状态 
2010-04-21 18:22
libin009
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2010-4-21
收藏
得分:0 
谢谢2位,可以了
2010-04-21 20:30
快速回复:服务器: 消息 170,级别 15,状态 1,行 51第 51 行: ',' 附近有语法错 ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.034839 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved