
数据库(Database)
zxy119
这个作者很懒,什么都没留下…
展开
-
第一正规形式
每个属性都是标准化的,也就是说每个属性都只有唯一的值。 常出现的问题: 1.日期最好把每个部分保存在不同的属性中。比如11/09/85不要只保存在Date_Birth一个属性中,把它保存在Month,Day,Year三个属性中。 2.不要保存隐式codes(这些codes一般都要经过特定的算法计算出某个有显示意义的值,比如,REF0010398表示第一个项目开始的日期),而最好是分别保存在R原创 2006-04-07 14:52:00 · 910 阅读 · 0 评论 -
MySQL开发中的外键(foreign key)与参照完整性(Referential integrity)
MySQL开发中的外键(foreign key)与参照完整性(Referential integrity) 作者: Builder.com 2006-02-24 11:37 AM转载 2006-04-13 19:08:00 · 2082 阅读 · 0 评论 -
SQL-JOIN
The join clause combines columns of one table to that of another to create a single table. Join matches up a column with one table to a column in another table. A join query does not alter either t转载 2006-09-06 22:08:00 · 802 阅读 · 0 评论 -
DataReader, DataAdapter & DataSet - When to use?
DataReader, DataAdapter & DataSet - When to use? ADO.NET offers two central Data Access Components. In this Article we will discuss about their features and when to use what.ADO.NET provides two cen原创 2007-04-01 12:16:00 · 853 阅读 · 0 评论 -
游标的使用
先举例说下游标的基本用法:DECLARE @name varchar(40) DECLARE test_cursor CURSOR --test_cursor 为游标名称 FOR SELECT au_fname FROM authors --你要逐条记录滚动的表authors OPEN test原创 2007-05-23 21:37:00 · 635 阅读 · 0 评论