数据库设计
2016-11-04 13:56:38 0 举报
数据库设计是将用户需求转化为数据模型的过程,包括概念设计、逻辑设计和物理设计三个阶段。在概念设计阶段,通过需求分析确定实体、属性和关系;在逻辑设计阶段,将概念模型转化为关系模型,并进行规范化处理;在物理设计阶段,根据硬件环境和性能要求选择合适的存储结构和索引策略。一个好的数据库设计应具备良好的性能、可扩展性和易维护性,以满足实际应用的需求。
作者其他创作
大纲/内容
userSports
sid int (primary key) auto_increnid int not_nullinfo text not_nulltype int not_null
news
nid int (primary key) auto_incres_time varchar(100) not_nullcontain text not_nullownerid int (foreign key)not_null
comment
cid int (primary key) auto_increnid ints_time varchar(100) not_nullcontain text not_nullownerid int (foreign key)not_null
activity
aid int (primary key) auto_incres_time varchar(100) not_nulle_time varchar(100) not_nullpassword text ownerid int (foreign key) not_nullpid text auto_increch_id int (foreign key) not_null type varchar(100) (foreign key) not_null
friend
fid int (primary key) auto_increuid int (foreign key)not_nulloid int not_null //the one's own uid
user
uid int (primary key) auto_increbirthday varchar(10)nickname varchar(100) not_nullpassword text not_nulllevel int not_nullmotto textemail varchar(100) not_nulltype int not_null
收藏
0 条评论
下一页