把下边sqlserver建表语句改成mysql的,谢谢!!!! 50
CREATETABLE[T_Office]([F_Id][int]IDENTITY(1,1)NOTNULL,[F_OfficeName][nvarchar](50)COL...
CREATE TABLE [T_Office] (
[F_Id] [int] IDENTITY (1, 1) NOT NULL ,
[F_OfficeName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[F_Tel] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
[F_Address] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
[F_Order] [smallint] NULL CONSTRAINT [DF_T_Office_F_Order] DEFAULT (0),
[F_Fax] [nvarchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
[F_Code] [nvarchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
[F_Web] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
[F_OtherTel] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
CONSTRAINT [pk_office_id] PRIMARY KEY CLUSTERED
(
[F_Id]
) ON [PRIMARY] ,
CONSTRAINT [un_office_officename] UNIQUE NONCLUSTERED
(
[F_OfficeName]
) ON [PRIMARY]
) ON [PRIMARY] 展开
[F_Id] [int] IDENTITY (1, 1) NOT NULL ,
[F_OfficeName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[F_Tel] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
[F_Address] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
[F_Order] [smallint] NULL CONSTRAINT [DF_T_Office_F_Order] DEFAULT (0),
[F_Fax] [nvarchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
[F_Code] [nvarchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
[F_Web] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
[F_OtherTel] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
CONSTRAINT [pk_office_id] PRIMARY KEY CLUSTERED
(
[F_Id]
) ON [PRIMARY] ,
CONSTRAINT [un_office_officename] UNIQUE NONCLUSTERED
(
[F_OfficeName]
) ON [PRIMARY]
) ON [PRIMARY] 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询