谁能给我一个可以使用的SQL库?

来源:百度知道 编辑:UC知道 时间:2024/06/18 13:39:25
初学SQL。手里没有现成的库。教程里的操作无法去尝试。
谁有可以使用的比较完整的库能传给我的。我用来练习。
是SQL2000的。
最好连前台程序也有。

//在F盘下新建个文件夹w然后执行以下语句你就有库了

create database bookManageDB
on primary
(

name ='bookManageDB',
filename='F:\w\bookManageDB.mdf'
)
log on
(
name ='bookManageDB_log',
filename='F:\w\bookManageDB_log.ldf'
)

go

--学员信息表
use bookManageDB
create table student
(
stuId char(10) not null primary key,
stuName Varchar(10) not null,
major Varchar(50) not null
)

go
--书籍信息报

create table book
(
bid char(10) not null primary key,
title nvarchar(50) not null,
author nvarchar(20) not null
)

go

--借书表
create table borrow
(
borrowID char(10) not null primary key ,
stuId char(10) not null,
bId char(10) not null,
t_time datetime not null default(dateadd(yy,-2,getdate())),
b_time datetime null
)
--加外键
alter table borro