图书馆管理系统吧 关注:102贴子:269
  • 4回复贴,共1

图书馆管理系统--数据库设计

只看楼主收藏回复

create table reader_info
(reader_id bigint identity(1,1) primary key,
 reader_name char(10),
 reader_unit char(20),
 reader_work char(16),
)

insert into reader_info(reader_name,reader_unit,reader_work)
values ('huang','computer','asdf')

insert into reader_info(reader_name,reader_unit,reader_work)
values ('cheng','computer','student')


 
create table book_type
(type_num char(20) primary key,
 type_nam char(20) not null,
 type_remark char(50)
)
create table user_info
(user_num char(10),
 user_psw char(10),
 user_type_name char(10)
)

create table punnish 
(reader_id bigint,
 punnish_time datetime,
 user_num char(10),
 punnish_money money,
 book_id bigint,
 primary key(reader_id,punnish_time,user_num)
)


create table book_info
(book_id bigint identity(1,1) primary key,
 book_isbn char(16),
 book_author char(10),
 book_press char(20),
 book_price money,
 book_flag char(2),
 type_num char(20) references book_type(type_num),
 book_remark char(50),
 book_name char(40),
 
)
 

create table record_info
(reader_id  bigint references reader_info(reader_id),
 book_id    bigint references book_info(book_id),
 record_borr datetime,
 record_be_back datetime,
 recerd_back datetime,
 primary key(reader_id,book_id,record_borr),
 
)


1楼2006-12-25 16:44回复
    • 220.171.89.*
    图书管管理系统——数据库设计


    2楼2008-01-12 00:02
    回复
      广告
      立即查看
      能不能有相关说明啊,看懂一点,你的好像借出跟归还是两张表


      IP属地:四川3楼2008-08-29 17:43
      回复
        可以把整个图书管理系统发给我不?大神


        5楼2014-06-03 21:42
        回复
          推荐一个GNU公众授权的图书馆管理软体Koha,包括全部的原始码及相关文件,而且有详尽的Bug report。建议安装之后,解决其中一个bug,做为您的论文基础。 koha-community.org [英文] 、mao.wikia.com/wiki/Koha [繁体]


          6楼2014-10-31 18:55
          回复