下面这段sql是什么意思?为什么有大括号?可以导入mysql数据库吗?求大神解答!

SETANSI_NULLSONGOSETQUOTED_IDENTIFIERONGOIFNOTEXISTS(SELECT*FROMsys.objectsWHEREobjec... SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[yq_user]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[yq_user](
[uaccount] [int] NOT NULL,
[upassword] [nvarchar](20) NOT NULL,
[unick] [nvarchar](20) NOT NULL,
[uavatar] [int] NULL,
[utrends] [nvarchar](50) NULL,
[usex] [nvarchar](10) NULL,
[uage] [int] NULL,
[ulev] [int] NULL,
[uisonline] [int] NULL,
[utime] [nvarchar](30) NULL
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[yq_group]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[yq_group](
[gaccount] [int] NOT NULL,
[gnick] [nvarchar](50) NOT NULL,
[gtrends] [nvarchar](50) NULL,
[gmanager] [int] NOT NULL,
[gcount] [int] NOT NULL
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[yq_group_member]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[yq_group_member](
[gaccount] [int] NOT NULL,
[gmember] [int] NOT NULL
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[yq_buddy]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[yq_buddy](
[baccount] [int] NOT NULL,
[bbuddy] [int] NOT NULL
) ON [PRIMARY]
END
展开
 我来答
男孩别哭小童鞋
2015-02-24 · TA获得超过277个赞
知道答主
回答量:103
采纳率:0%
帮助的人:87.8万
展开全部
XAMPP里面包含一个叫phpmyadmin的软件,用他你可以导入Mysql的数据库,方法是:打开localhost\\/phpmyadmin。然后用phpmyadmin新建一个数据库,点击菜单上的导入,选择你的SQL文件,按下确定,搞定!
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式