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

news2024/11/26 1:45:13

目录

配置简介和软件条件

数据库附件配置

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.coloradmin.cn/o/1267564.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

TableAgent:首个国产可私有部署的企业级Code Interpreter

TableAgent公测地址:https://tableagent.DataCanvas.com 数字化时代,数据分析的重要性犹如空气般无处不在。商业数据分析是数字化管理、智能决策的基础,同时数据分析又是一个专业性极强的工作,描述性分析、诊断性分析、预测性分…

【经验贴】技术转项目经理,利用项目管理工具快速适应!

之前分享了我在项目管理过程中的一些实战经验,大家纷纷表示感同身受。其中,有一部分技术转项目经理岗位的小伙伴吐槽现在加的班比以前更多、工作更难开展了,想问问如何能快速适应新的工作岗位。 我们公司这几年随着业务的不断增加&#xff0c…

docker搭建rabbit集群

1.去rabbitMQ官网拉去images 我当前使用的是最新版本的镜像:rabbitmq:3.12-management 2.创建一个集群专用网络 docker的容器相互隔离是不可通信的,我们自行创建一个网络后,创建容器时 给他们放在一起,就可以通信了。 docker netw…

Testlink 1.9.20+phpstudy_pro安装遇到的问题

phpstudy_pro启动了Apache2.4.39和Mysql5.7.26,php的版本是7.3.4zai。 安装Testlink 1.9.19时没有数据库的问题,安装Testlink 1.9.20时遇到了数据库问题,如下图所示: 网上搜索“Failed!Mysql Database cannnot be used”,给出的…

Adobe Illustrator绘图解决卡顿问题

最近在用AI做矢量图,但是遇到了一个很难搞的问题,当我们需要分辨率较高的图片的时候,Python用Matplotlib生成的pdf时dpi参数会设置为600及以上,但是样子的话就造成了pdf文件过大以及AI卡顿,比如,下午生成的…

莱佛士学生成功入围2023Harper‘s BAZAAR NewGen Award六强

Harpers BAZAAR NewGen Award(《时尚芭莎》新一代奖)旨在为了培养、发掘和支持更多新加坡地区的新兴设计师,为最后一年的学生设计师提供一个在时尚领域学习的宝贵平台。 目前,已经揭晓比赛前六强名单,莱佛士设计学院服…

Veras:Revit AI渲染插件

Veras 是一款基于生成式AI 的可视化工具,可以使用自然语言生成3D渲染效果,兼容Revit、Rhino 和 SketchUp。Veras for Revit工具使用 Revit 模型内部的 3D 视图。 1、快速上手 Veras使用很简单,你只需要输入文本提示并在不同选项中进行选择即…

【从浅识到熟知Linux】基本指令之mkdir

🎈归属专栏:从浅学到熟知Linux 🚗个人主页:Jammingpro 🐟每日一句:加油努力,这次写完真的要去干饭了! 文章前言:本文介绍mkdir指令用法并给出示例和截图。 文章目录 基本…

视频剪辑技巧:批量剪辑新思路,AI智剪来助阵

在视频制作过程中,剪辑是一项至关重要的任务。然而,对于许多创作者来说,批量剪辑视频是一项耗时且繁琐的工作。传统的批量剪辑方法通常要创作者逐个打开视频文件,进行剪辑、调整色彩等操作。这种方法不仅效率低下,而且…

微信怎么复制转发好友朋友圈

在社交媒体时代,朋友圈已成为人们交流、分享和获取信息的重要平台。许多人都希望能够在繁忙的生活中,更便捷地分享和转发好友的朋友圈内容。 一键转发好友朋友圈功能究竟有哪些好处呢? 节省时间和精力 保持信息的即时性和新鲜度 好友的朋友…

select选择框里填充图片

遇到一个需求&#xff0c;选择下拉框选取图标&#xff0c;填充到框里 1、效果展示 2、代码 <el-form-item label"工种图标" class"Form_icon Form_label"><el-select ref"select" :value"formLabelAlign.icon" placeholder&…

软件设计师——程序设计语言基础(一)

&#x1f4d1;前言 本文主要是【程序设计语言基础】——程序设计语言基础的相关题目&#xff0c;如果有什么需要改进的地方还请大佬指出⛺️ &#x1f3ac;作者简介&#xff1a;大家好&#xff0c;我是听风与他&#x1f947; ☁️博客首页&#xff1a;CSDN主页听风与他 &#…

java开发之个微群聊管理

简要描述&#xff1a; 群管理操作 请求URL&#xff1a; http://域名/operateChatRoom 请求方式&#xff1a; POST 请求头Headers&#xff1a; Content-Type&#xff1a;application/jsonAuthorization&#xff1a;login接口返回 参数&#xff1a; 参数名必选类型说明w…

JavaScript 的初步学习下篇

函数 语法格式 创建函数/函数声明/函数定义 function 函数名(形参列表) {函数体return 返回值; }函数调用 函数名(实参列表) // 不考虑返回值 返回值 函数名(实参列表) // 考虑返回值 注: 函数定义并不会执行函数体内容, 必须要调用才会执行. 调用几次就会执行几次. js 中…

VBA技术资料MF88:测试Excel文件名是否有效

我给VBA的定义&#xff1a;VBA是个人小型自动化处理的有效工具。利用好了&#xff0c;可以大大提高自己的工作效率&#xff0c;而且可以提高数据的准确度。我的教程一共九套&#xff0c;分为初级、中级、高级三大部分。是对VBA的系统讲解&#xff0c;从简单的入门&#xff0c;到…

在Windows 10中至少有7种方法进入安全模式,但不一定是按F8键

几十年来,安全模式一直用于加载操作系统,尽管功能有所减少,目的是通过仅加载操作系统的核心组件来排除与PC相关的问题并执行诊断。避开某些系统文件的处理和设备驱动程序的加载,以及停止特定服务,提供了一个最小化的表面,使回滚可能导致系统不稳定或以其他方式阻止计算机…

Java高级技术(注解)

一&#xff0c;注解 二&#xff0c;案例 三&#xff0c;注解原理 四&#xff0c;元注解 五&#xff0c;案例 六&#xff0c;解析注解 七&#xff0c;案例

同旺科技 分布式数字温度传感器

内附链接 1、数字温度传感器 主要特性有&#xff1a; ● 支持PT100 / PT1000 两种铂电阻&#xff1b; ● 支持 2线 / 3线 / 4线 制接线方式&#xff1b; ● 支持5V&#xff5e;17V DC电源供电&#xff1b; ● 支持电源反接保护&#xff1b; ● 支持通讯波特率1200bps、2…

java学习part21枚举

117-面向对象(高级)-枚举类的两种定义方式及练习_哔哩哔哩_bilibili 1.概念 2.enum关键字 枚举早期是用class内放n个public static final类变量供调用。 后来有了enum关键字&#xff0c;enum里的枚举变量都是public static final&#xff0c;但是必须都省略不写 正确方法 &…

行情分析——加密货币市场大盘走势(11.29)

大饼已经形成了底背离&#xff0c;即MACD往下走&#xff0c;而价格还在往上走&#xff0c;这种后续往往会大跌。继续把空单拿好&#xff0c;已经持仓的无需加仓。多次上涨却一直不能突破&#xff0c;说明多空和空军力量都很强&#xff0c;等待后续出方向。在笔者看来&#xff0…