图书管理系统源码,图书管理系统开发,图书借阅系统源码配置和运行图解源码已附加

目录

配置简介和软件条件

数据库附件配置

vs应用程序web.config配置数据库链接字符串

数据库文件脚本代码


配置简介和软件条件

所需要的软件是Vs2017以上数据库是Sqlserver2012以上,如果数据库附件不了可以使用数据库脚本附件数据库脚本会在文章末尾写出来。可以直接复制到数据库哪里创建TushuManger执行

首先拿到源码后解压文件会得到8个目录,除了文件夹以外另外两个.ldf和.mdf文件是数据库

源码可以直接点击文件夹TuShuManger文件里面的TuShuManger.sln

数据库附件配置

打开sqlerver2019右键数据库哪里选择附件后,添加上对应的数据库.mdf文件

vs应用程序web.config配置数据库链接字符串

打开目录里面的TuShuManger.sln后点击文件web.config,然后配置里面参数,datasource是数据库服务器地址,Initial Catalog是数据库名称

数据库文件脚本代码

USE [TuShuManger]
GO
/****** Object:  Table [dbo].[ReaderManger]    Script Date: 11/28/2023 20:43:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ReaderManger]([Id] [int] IDENTITY(1,1) NOT NULL,[rmnum] [nvarchar](max) NULL,[rmname] [nvarchar](max) NULL,[rmljnum] [nvarchar](max) NULL,[rmphone] [nvarchar](max) NULL,[rmsex] [nvarchar](max) NULL,[rmsr] [nvarchar](max) NULL,[rmcatgoryid] [nvarchar](max) NULL,[rmyx] [nvarchar](max) NULL,[rmyue] [nvarchar](max) NULL,[rmbj] [nvarchar](max) NULL,[rmyxq] [nvarchar](max) NULL,[rmsfz] [nvarchar](max) NULL,[rmemail] [nvarchar](max) NULL,[rmaddress] [nvarchar](max) NULL,[rmbeiz] [nvarchar](max) NULL,[idate] [nvarchar](max) NULL,[xtdate] [datetime] NULL,
PRIMARY KEY CLUSTERED 
([Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'读者编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderManger', @level2type=N'COLUMN',@level2name=N'rmnum'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'读者姓名' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderManger', @level2type=N'COLUMN',@level2name=N'rmname'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'手机号码' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderManger', @level2type=N'COLUMN',@level2name=N'rmphone'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'读者性别' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderManger', @level2type=N'COLUMN',@level2name=N'rmsex'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'生日' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderManger', @level2type=N'COLUMN',@level2name=N'rmsr'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'读者类别' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderManger', @level2type=N'COLUMN',@level2name=N'rmcatgoryid'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'院系' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderManger', @level2type=N'COLUMN',@level2name=N'rmyx'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'余额' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderManger', @level2type=N'COLUMN',@level2name=N'rmyue'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'班级' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderManger', @level2type=N'COLUMN',@level2name=N'rmbj'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'有效期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderManger', @level2type=N'COLUMN',@level2name=N'rmyxq'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'身份证号码' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderManger', @level2type=N'COLUMN',@level2name=N'rmsfz'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'电子邮件' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderManger', @level2type=N'COLUMN',@level2name=N'rmemail'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'通讯地址' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderManger', @level2type=N'COLUMN',@level2name=N'rmaddress'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderManger', @level2type=N'COLUMN',@level2name=N'rmbeiz'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'登记日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderManger', @level2type=N'COLUMN',@level2name=N'idate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'条数时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderManger', @level2type=N'COLUMN',@level2name=N'xtdate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'读者表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderManger'
GO
/****** Object:  Table [dbo].[ReaderCatgory]    Script Date: 11/28/2023 20:43:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ReaderCatgory]([Id] [int] IDENTITY(1,1) NOT NULL,[rname] [nvarchar](max) NULL,[rnum] [nvarchar](max) NULL,[rday] [nvarchar](max) NULL,[rxnum] [nvarchar](max) NULL,[idate] [nvarchar](max) NULL,[xtdate] [datetime] NULL,
PRIMARY KEY CLUSTERED 
([Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'读者类型名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderCatgory', @level2type=N'COLUMN',@level2name=N'rname'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'借书次数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderCatgory', @level2type=N'COLUMN',@level2name=N'rnum'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'借书天数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderCatgory', @level2type=N'COLUMN',@level2name=N'rday'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'续借次数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderCatgory', @level2type=N'COLUMN',@level2name=N'rxnum'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'添加时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderCatgory', @level2type=N'COLUMN',@level2name=N'idate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'条数时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderCatgory', @level2type=N'COLUMN',@level2name=N'xtdate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'读者分类表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ReaderCatgory'
GO
/****** Object:  Table [dbo].[OutDate]    Script Date: 11/28/2023 20:43:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[OutDate]([Id] [int] IDENTITY(1,1) NOT NULL,[onum] [nvarchar](max) NULL,[xtdate] [datetime] NULL,
PRIMARY KEY CLUSTERED 
([Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'超期罚款金额' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OutDate', @level2type=N'COLUMN',@level2name=N'onum'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'条数时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OutDate', @level2type=N'COLUMN',@level2name=N'xtdate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'超期罚款金额表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OutDate'
GO
/****** Object:  Table [dbo].[DataBaseTable]    Script Date: 11/28/2023 20:43:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DataBaseTable]([Id] [int] IDENTITY(1,1) NOT NULL,[bname] [nvarchar](max) NULL,[bnum] [nvarchar](max) NULL,[Parent] [nvarchar](max) NULL,[bidate] [nvarchar](max) NULL,[btdate] [datetime] NULL,
PRIMARY KEY CLUSTERED 
([Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[BoReturn]    Script Date: 11/28/2023 20:43:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[BoReturn]([Id] [int] IDENTITY(1,1) NOT NULL,[brbnum] [nvarchar](max) NULL,[brbname] [nvarchar](max) NULL,[brrnum] [nvarchar](max) NULL,[brrname] [nvarchar](max) NULL,[brbdate] [nvarchar](max) NULL,[brrdate] [nvarchar](max) NULL,[brsj] [nvarchar](max) NULL,[bryqts] [nvarchar](max) NULL,[bryqfj] [nvarchar](max) NULL,[brcbs] [nvarchar](max) NULL,[brzt] [nvarchar](max) NULL,[brhsrq] [nvarchar](max) NULL,[brtdate] [datetime] NULL,
PRIMARY KEY CLUSTERED 
([Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图书编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BoReturn', @level2type=N'COLUMN',@level2name=N'brbnum'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图书名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BoReturn', @level2type=N'COLUMN',@level2name=N'brbname'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'读者编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BoReturn', @level2type=N'COLUMN',@level2name=N'brrnum'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'读者姓名' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BoReturn', @level2type=N'COLUMN',@level2name=N'brrname'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'借出日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BoReturn', @level2type=N'COLUMN',@level2name=N'brbdate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'应还日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BoReturn', @level2type=N'COLUMN',@level2name=N'brrdate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图书单价' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BoReturn', @level2type=N'COLUMN',@level2name=N'brsj'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'逾期天数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BoReturn', @level2type=N'COLUMN',@level2name=N'bryqts'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'逾期罚金' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BoReturn', @level2type=N'COLUMN',@level2name=N'bryqfj'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'状态' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BoReturn', @level2type=N'COLUMN',@level2name=N'brzt'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'还书日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BoReturn', @level2type=N'COLUMN',@level2name=N'brhsrq'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'数据库条数增加时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BoReturn', @level2type=N'COLUMN',@level2name=N'brtdate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图书借还查询表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BoReturn'
GO
/****** Object:  Table [dbo].[BookManger]    Script Date: 11/28/2023 20:43:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[BookManger]([Id] [int] IDENTITY(1,1) NOT NULL,[bmmnum] [nvarchar](max) NULL,[bmmname] [nvarchar](max) NULL,[bmimg] [nvarchar](max) NULL,[bmtxm] [nvarchar](max) NULL,[bmssh] [nvarchar](max) NULL,[bmisbn] [nvarchar](max) NULL,[bmsl] [nvarchar](max) NULL,[bmbc] [nvarchar](max) NULL,[bmdj] [nvarchar](max) NULL,[bmzz] [nvarchar](max) NULL,[bmyz] [nvarchar](max) NULL,[bmzs] [nvarchar](max) NULL,[bmys] [nvarchar](max) NULL,[bmcatgoryid] [nvarchar](max) NULL,[bmcbs] [nvarchar](max) NULL,[bmidate] [nvarchar](max) NULL,[bmbeiz] [nvarchar](max) NULL,[bmtdate] [datetime] NULL,
PRIMARY KEY CLUSTERED 
([Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图书编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookManger', @level2type=N'COLUMN',@level2name=N'bmmnum'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图书名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookManger', @level2type=N'COLUMN',@level2name=N'bmmname'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图书图片' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookManger', @level2type=N'COLUMN',@level2name=N'bmimg'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图书条形码' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookManger', @level2type=N'COLUMN',@level2name=N'bmtxm'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图书索书号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookManger', @level2type=N'COLUMN',@level2name=N'bmssh'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图书ISBN' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookManger', @level2type=N'COLUMN',@level2name=N'bmisbn'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图书数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookManger', @level2type=N'COLUMN',@level2name=N'bmsl'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图书版次' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookManger', @level2type=N'COLUMN',@level2name=N'bmbc'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图书单价' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookManger', @level2type=N'COLUMN',@level2name=N'bmdj'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图书作者' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookManger', @level2type=N'COLUMN',@level2name=N'bmzz'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图书译者' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookManger', @level2type=N'COLUMN',@level2name=N'bmyz'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图书字数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookManger', @level2type=N'COLUMN',@level2name=N'bmzs'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图书页数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookManger', @level2type=N'COLUMN',@level2name=N'bmys'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图书分类id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookManger', @level2type=N'COLUMN',@level2name=N'bmcatgoryid'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图书出版社' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookManger', @level2type=N'COLUMN',@level2name=N'bmcbs'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookManger', @level2type=N'COLUMN',@level2name=N'bmbeiz'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'登记日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookManger', @level2type=N'COLUMN',@level2name=N'bmtdate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图书表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookManger'
GO
/****** Object:  Table [dbo].[BookCatgory]    Script Date: 11/28/2023 20:43:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[BookCatgory]([Id] [int] IDENTITY(1,1) NOT NULL,[bname] [nvarchar](max) NULL,[bnum] [nvarchar](max) NULL,[Parent] [nvarchar](max) NULL,[bidate] [nvarchar](max) NULL,[btdate] [datetime] NULL,
PRIMARY KEY CLUSTERED 
([Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图书分类名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookCatgory', @level2type=N'COLUMN',@level2name=N'bname'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图书分离编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookCatgory', @level2type=N'COLUMN',@level2name=N'bnum'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'预留字段可删除' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookCatgory', @level2type=N'COLUMN',@level2name=N'Parent'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'注册时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookCatgory', @level2type=N'COLUMN',@level2name=N'bidate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'数据库插入时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookCatgory', @level2type=N'COLUMN',@level2name=N'btdate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图书分类表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BookCatgory'
GO
/****** Object:  Table [dbo].[AdminUser]    Script Date: 11/28/2023 20:43:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[AdminUser]([Id] [int] IDENTITY(1,1) NOT NULL,[username] [nvarchar](max) NULL,[password] [nvarchar](max) NULL,[qq] [nvarchar](max) NULL,[email] [nvarchar](max) NULL,[phone] [nvarchar](max) NULL,[sex] [nvarchar](max) NULL,[idate] [nvarchar](max) NULL,[xtdate] [datetime] NULL,
PRIMARY KEY CLUSTERED 
([Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'用户名' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'AdminUser', @level2type=N'COLUMN',@level2name=N'username'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'密码' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'AdminUser', @level2type=N'COLUMN',@level2name=N'password'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'qq' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'AdminUser', @level2type=N'COLUMN',@level2name=N'qq'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'邮箱' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'AdminUser', @level2type=N'COLUMN',@level2name=N'email'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'手机' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'AdminUser', @level2type=N'COLUMN',@level2name=N'phone'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'性别' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'AdminUser', @level2type=N'COLUMN',@level2name=N'sex'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'登记日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'AdminUser', @level2type=N'COLUMN',@level2name=N'idate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'数据库插入日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'AdminUser', @level2type=N'COLUMN',@level2name=N'xtdate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'用户管理员表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'AdminUser'
GO
/****** Object:  Default [DF__AdminUser__xtdat__1BFD2C07]    Script Date: 11/28/2023 20:43:54 ******/
ALTER TABLE [dbo].[AdminUser] ADD  DEFAULT (getdate()) FOR [xtdate]
GO
/****** Object:  Default [DF__BookCatgo__btdat__1CF15040]    Script Date: 11/28/2023 20:43:54 ******/
ALTER TABLE [dbo].[BookCatgory] ADD  DEFAULT (getdate()) FOR [btdate]
GO
/****** Object:  Default [DF__BookMange__bmtda__1DE57479]    Script Date: 11/28/2023 20:43:54 ******/
ALTER TABLE [dbo].[BookManger] ADD  DEFAULT (getdate()) FOR [bmtdate]
GO
/****** Object:  Default [DF__BoReturn__brtdat__1ED998B2]    Script Date: 11/28/2023 20:43:54 ******/
ALTER TABLE [dbo].[BoReturn] ADD  DEFAULT (getdate()) FOR [brtdate]
GO
/****** Object:  Default [DF__DataBaseT__btdat__1FCDBCEB]    Script Date: 11/28/2023 20:43:54 ******/
ALTER TABLE [dbo].[DataBaseTable] ADD  DEFAULT (getdate()) FOR [btdate]
GO
/****** Object:  Default [DF__OutDate__xtdate__20C1E124]    Script Date: 11/28/2023 20:43:54 ******/
ALTER TABLE [dbo].[OutDate] ADD  DEFAULT (getdate()) FOR [xtdate]
GO
/****** Object:  Default [DF__ReaderCat__xtdat__21B6055D]    Script Date: 11/28/2023 20:43:54 ******/
ALTER TABLE [dbo].[ReaderCatgory] ADD  DEFAULT (getdate()) FOR [xtdate]
GO
/****** Object:  Default [DF__ReaderMan__xtdat__22AA2996]    Script Date: 11/28/2023 20:43:54 ******/
ALTER TABLE [dbo].[ReaderManger] ADD  DEFAULT (getdate()) FOR [xtdate]
GO

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/204532.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

鸿蒙开发-ArkTS 语言-循环渲染

[写在前面: 文章多处用到gif动图,如未自动播放,请点击图片] 衔接上一篇: 鸿蒙开发-ArkTS 语言-状态管理 4. 渲染控制 对于 UI 渲染,可以基于数据结构选择一些内置方法(例如:ForEach)快速渲染 UI 结构。 …

SpringBoot+VUE3前后端分离-【支付宝支付】

1、支付宝沙箱应用申请 https://open.alipay.com/develop/sandbox/app 打开支付宝沙箱能够看到如下信息: 获取到appid; 2、获取应用私钥以及支付宝公钥 在接口加密方式选择公钥模式启用,根据操作即可获取应用公钥、应用私钥以及支付宝公钥…

Redis 主库挂了,如何不间断服务?

目录 1、哨兵机制的基本流程 2、主观下线和客观下线 3、如何选定新的主库? 总结 // 你只管前行,剩下的交给时间 在 reids 主从库集群模式下,如果从库发生故障了,客户端可以继续向主库或其他从库发送请求,进行相关的…

5W2H分析法

5W2H分析法 5W2H分析法又叫七问分析法。 模型介绍 简单、方便,易于操作的思考(框架)模型,问题分析模型,它可以帮助我们保证思考的严谨与全面,也能给人启发,有着广泛的应用: 提问-可…

Spring之AOP理解与应用(更新中)

1. AOP的认识 面向切面编程:基于OOP基础之上新的编程思想,OOP面向的主要对象是类,而AOP面向的主要对象是切面,在处理日志、安全管理、事务管理等方面有非常重要的作用。AOP是Spring中重要的核心点,AOP提供了非常强…

别太担心,人类只是把一小部分理性和感性放到了AI里

尽管人工智能(AI)在许多方面已经取得了重大进展,但它仍然无法完全复制人类的理性和感性。AI目前主要侧重于处理逻辑和分析任务,而人类则具有更复杂的思维能力和情感经验。 人类已经成功地将一些可以数据化和程序化的理性和感性特征…

音频采集的相关基础知识

本文引注: https://zhuanlan.zhihu.com/p/652629744 1.麦克风的种类 (1)模拟麦克风 ECM麦克风:驻极体电容麦克风(ECM),典型的汽车ECM麦克风是一种将ECM单元与小型放大器电路整合在单个外壳中的装置。放大器提供一个模拟信号,其电压电平允许…

迷你洗衣机哪个牌子好又实惠?口碑最好的小型洗衣机

不得不说洗衣机的发明解放了我们的双手,而我们从小到大就有这个意识,贴身衣物不可以和普通的衣服一起丢进去洗衣机一起,而内衣裤上不仅有肉眼看见的污渍还有手上根本无法消灭的细菌,但是有一款专门可以将衣物上的细菌杀除的内衣洗…

简介vue

目录 一、介绍 渐进式框架​ 单文件组件​ 选项式 API (Options API)​ 组合式 API (Composition API)​ 该选哪一个?​ 创建一个 Vue 应用 应用实例​ 根组件​ DOM 中的根组件模板 应用配置​ 多个应用实例​ 一、介绍 Vue (发音为 /vjuː/&#xff…

CI/CD 构建中能保护好 SSHKEY吗?

目录 背景 方案 编码存储 逐行存储 合并存储 打马赛克 结论 背景 使用极狐GitLab CI/CD,在部署方面,主要有两种方式: 部署到K8S集群 Push模式:流水线通过kubectl执行命令部署,这需要把K8S的权限给流水线&#xf…

2. 两数相加

给你两个 非空 的链表,表示两个非负的整数。它们每位数字都是按照 逆序 的方式存储的,并且每个节点只能存储 一位 数字。 请你将两个数相加,并以相同形式返回一个表示和的链表。 你可以假设除了数字 0 之外,这两个数都不会以 0 …

C#面向对象

过程类似函数只能执行没有返回值 函数不仅能执行,还可以返回结果 1、面向过程 a 把完成某一需求的所有步骤 从头到尾 逐步实现 b 根据开发需求,将某些 功能独立 的代码 封装 成一个又一个 函数 c 最后完成的代码就是顺序的调用不同的函数 特点 1、…

vue项目多个不同的服务器请求地址管理

vue项目多个不同的服务器请求地址管理 在vue项目开发过程中,获取不同的数据可能会出现需要请求多个不同服务器地址的域名,这个时候需要对不同域名的请求地址进行管理以及跨域的代理。 一、单服务器域名地址的跨域代理和请求配置: 跨域配置&…

【算法萌新闯力扣】:卡牌分组

力扣热题:卡牌分组 一、开篇 今天是备战蓝桥杯的第22天。这道题触及到我好几个知识盲区,以前欠下的债这道题一并补齐,哈希表的遍历、最大公约数与最小公倍数,如果你还没掌握,这道题练起来! 二、题目链接:…

为Oracle链接服务器使用分布式事务

1 现象 在SQL Server中创建指向Oracle的链接服务器,SQL语句在事务中向链接服务器插入数据。返回链接服务器无法启动分布式事务的报错。 2 解决 在Windows平台下,SQL Server依赖分布式事务协调器(MSDTC)来使用分布式事务&#xff0…

【ArcGIS Pro微课1000例】0038:基于ArcGIS Pro的人口密度分析与制图

文章目录 一、人口密度二、人口密度分析1. 点密度分析2. 核密度分析三、结果比对一、人口密度 人口密度是指单位土地面积上居住的人口数,通常以每平方千米或每公顷内的常住人口为单位计算。人口密度同资源、经济密切结合,因此,科学准确地分析人口密度的分布情况,对合理制定…

亚信科技AntDB数据库与库瀚存储方案完成兼容性互认证

近日,亚信科技AntDB数据库与苏州库瀚信息科技有限公司自主研发的RISC-V数据库存储解决方案进行了产品兼容测试。经过双方团队的严格测试,亚信科技AntDB数据库与库瀚数据库存储解决方案完全兼容、运行稳定。除高可用性测试外,双方进一步开展TP…

0 NLP: 数据获取与EDA

0数据准备与分析 二分类任务,正负样本共计6W; 数据集下载 https://github.com/SophonPlus/ChineseNlpCorpus/raw/master/datasets/online_shopping_10_cats/online_shopping_10_cats.zip 样本的分布 正负样本中评论字段的长度 ,超过500的都…

Redis深入理解-主从架构下内核数据结构、主从同步以及主节点选举

Redis 主从挂载后的内核数据结构分析 主节点中,会通过 clusteNode 中的 slaves 来记录该主节点包含了哪些从节点,这个 slaves 是一个指向 *clusterNode[] 数组的数据结构从节点中,会通过 clusterNode 中的 slaveof 来记录该从节点属于哪个主…

webpack项目工程初始化

一、初始化项目 默认系统已经安装node //初始化 pnpm init//安装webpack pnpm i -D webpack webpack-cli 新建一个index.html的入口文件 新建一个src文件存放js代码,src里面新建一个index.js package.josn配置打包命令 {"name": "webpack-cs&q…