SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tblorderBook]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[tblorderBook](
[orderID] [int] NOT NULL,
[bookID] [int] NOT NULL,
[quality] [int] NOT NULL,
[soldPrice] [numeric](18, 1) NOT NULL,
[paysum] [numeric](18, 1) NOT NULL,
CONSTRAINT [PK_tblorderBook] PRIMARY KEY CLUSTERED
(
[orderID] ASC,
[bookID] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) 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].[tbluser]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[tbluser](
[userID] [int] IDENTITY(1,1) NOT NULL,
[userName] [nvarchar](50) NOT NULL,
[userPwd] [nvarchar](50) NOT NULL,
[trueName] [nvarchar](30) NULL,
[address] [nvarchar](80) NULL,
[telephone] [nvarchar](30) NULL,
[postcode] [nvarchar](20) NULL,
[sex] [char](2) NOT NULL CONSTRAINT [DF_tbluser_sex] DEFAULT ('男'),
[userType] [smallint] NOT NULL,
CONSTRAINT [PK_tbluser] PRIMARY KEY CLUSTERED
(
[userID] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) 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].[pinglun]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[pinglun](
[postID] [int] IDENTITY(1,1) NOT NULL,
[bookID] [int] NOT NULL,
[textname] [varchar](100) NOT NULL,
[userName] [nvarchar](50) NOT NULL,
[text] [varchar](1000) NOT NULL,
[speaktime] [datetime] NOT NULL,
CONSTRAINT [PK_pinglun] PRIMARY KEY CLUSTERED
(
[postID] ASC,
[bookID] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) 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].[tblBook]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[tblBook](
[bookID] [int] IDENTITY(1,1) NOT NULL,
[typeID] [int] NOT NULL,
[bookName] [nvarchar](50) NOT NULL,
[bookAuthor] [nvarchar](50) NULL,
[bookPrice] [numeric](18, 1) NOT NULL,
[publisher] [nvarchar](50) NULL,
[publishDate] [smalldatetime] NULL,
[bookImage] [nvarchar](50) NULL,
[IsSelling] [bit] NOT NULL CONSTRAINT [DF_tblBook_IsSelling] DEFAULT ((0)),
CONSTRAINT [PK_tblBook] PRIMARY KEY CLUSTERED
(
[bookID] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
END
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'1代表正在出售,0代表没有' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'tblBook', @level2type=N'COLUMN', @level2name=N'IsSelling'
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].[tblorder]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[tblorder](
[orderID] [int] IDENTITY(1,1) NOT NULL,
[userID] [int] NOT NULL,
[orderTime] [smalldatetime] NOT NULL CONSTRAINT [DF_tblorder_orderTime] DEFAULT (getdate()),
[orderSum] [numeric](10, 1) NOT NULL,
[payment] [nvarchar](20) NOT NULL CONSTRAINT [DF_tblorder_payment] DEFAULT (N'银行支付'),
[ship] [nvarchar](20) NOT NULL CONSTRAINT [DF_tblorder_ship] DEFAULT (N'平邮'),
[buyerName] [nvarchar](30) NOT NULL,
[buyerEmail] [nvarchar](50) NOT NULL,
[buyerAddress] [nvarchar](60) NOT NULL,
[buyerCode] [nvarchar](30) NOT NULL,
[buyerTel] [nvarchar](30) NOT NULL,
[IsPayed] [smallint] NOT NULL CONSTRAINT [DF_tblorder_IsPayed] DEFAULT ((0)),
CONSTRAINT [PK_tblorder] PRIMARY KEY CLUSTERED
(
[orderID] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) 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].[tblType]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[tblType](
[typeID] [int] NOT NULL,
[typeName] [sysname] NOT NULL,
[fatherID] [int] NULL,�
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
ASP.NET网上书店系统 (119个子文件)
Global.asax 982B
top.ascx 931B
di.ascx 625B
default.aspx 15KB
userBook.aspx 12KB
userMain.aspx 12KB
register.aspx 9KB
Managebook.aspx 9KB
Changeinfo.aspx 5KB
addbook.aspx 4KB
Reviews.aspx 4KB
userInfo.aspx 3KB
admin.aspx 3KB
userOrder.aspx 3KB
bookinfo.aspx 3KB
findbook_result.aspx 3KB
admin_login.aspx 3KB
login.aspx 3KB
Editbook_Inf.aspx 2KB
ManageReviews.aspx 2KB
user.aspx 946B
CheckCode.aspx 447B
Web.Config 2KB
userMain.aspx.cs 4KB
userBook.aspx.cs 4KB
CheckCode.aspx.cs 4KB
register.aspx.cs 3KB
Changeinfo.aspx.cs 3KB
admin.aspx.cs 3KB
Reviews.aspx.cs 2KB
login.aspx.cs 2KB
Editbook_Inf.aspx.cs 2KB
Managebook.aspx.cs 2KB
addbook.aspx.cs 2KB
admin_login.aspx.cs 2KB
Class1.cs 2KB
userInfo.aspx.cs 2KB
UserPage.master.cs 2KB
userOrder.aspx.cs 2KB
ManageReviews.aspx.cs 1KB
findbook_result.aspx.cs 1KB
bookinfo.aspx.cs 1KB
default.aspx.cs 933B
readinfo.cs 902B
user.aspx.cs 806B
bookPage.master.cs 506B
admin.master.cs 502B
top.ascx.cs 411B
book.master.cs 411B
di.ascx.cs 410B
pic_newbooks.gif 1KB
reg.gif 890B
productlist.gif 876B
login.gif 681B
agio.gif 177B
20033603732.jpg 82KB
20033604247.jpg 82KB
top.jpg 75KB
未标题-1.jpg 62KB
00.jpg 50KB
00.jpg 50KB
20033714754.jpg 15KB
780149800s.jpg 15KB
20318975_b.jpg 14KB
20264152_m.jpg 14KB
shuaxin.jpg 14KB
denglu.jpg 14KB
guanyu.jpg 13KB
shouye.jpg 13KB
720406675s.jpg 11KB
样品.jpg 10KB
样品.jpg 10KB
20311377_m.jpg 10KB
9339911_m.jpg 9KB
9283008_m.jpg 9KB
9283008_m.jpg 9KB
20045625_m.jpg 8KB
706098_b.jpg 8KB
20319646_m.jpg 7KB
20338102_m.jpg 7KB
20308752_m.jpg 7KB
xgnyy.jpg 7KB
xxfwjs.jpg 7KB
20334293_m.jpg 6KB
dxyyjc.jpg 6KB
fkyy.jpg 5KB
20322124_m.jpg 5KB
sdxn.jpg 5KB
20252604_m.jpg 5KB
20033714455.jpg 4KB
u=2959434861,228504416&fm=3&gp=1.jpg 4KB
aspnet.jpg 4KB
20033715616.jpg 4KB
200322801716.jpg 4KB
750538030s.jpg 4KB
u=2895689270,1956842778&fm=3&gp=21.jpg 3KB
u=2895689270,1956842778&fm=3&gp=21.jpg 3KB
u=1454663830,3250244118&fm=0&gp=34.jpg 3KB
200337143730.jpg 3KB
mfdgd.jpg 3KB
共 119 条
- 1
- 2
资源评论
z13658391545
- 粉丝: 1
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功