摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1事务是一组组合成逻辑工作单元的数据库操作,虽然系统中可能会出错,但事务将控制和维护每个数据库的一致性和完整性。如果在事务过程中没有遇到错误,事务中的所有修改都将永久成为数据库的一部分。如果遇到错误,... 阅读全文
posted @ 2010-06-12 09:30 吹啵糖こ 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 在sql server2005中可以在聚合函数的后面使用over(partition by col)替换group by的写法。有时候这样写比group by的形式要简短一些。下面我用AVG为例说明一下:下面的sql创建了一张student_class_grade的表,该表的三个字段分别为学生id,班级编号,成绩;我们需要查询系统中的所有同学的成绩,和班级的平均成绩。 if object_id('... 阅读全文
posted @ 2010-05-25 09:44 吹啵糖こ 阅读(350) 评论(0) 推荐(0) 编辑
摘要: -- Firstly,we need to create a tablecreate table score( Name varchar(10), Subject varchar(10), Result int)go-- Insert some data to score tableinsert into score(Name , Subject , Result) values('Jason' ... 阅读全文
posted @ 2010-05-25 09:39 吹啵糖こ 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.... 阅读全文
posted @ 2009-11-28 00:27 吹啵糖こ 阅读(553) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2009-11-15 22:54 吹啵糖こ 阅读(1271) 评论(0) 推荐(0) 编辑
摘要: 2008转到2000的步骤步骤 1. 生成for 2000版本的数据库脚本 2005 的manger studio -- 打开"对象资源管理器"(没有的话按F8), 连接到你的实例 -- 右键要转到2000的库 -- 任务 -- 生成脚本 -- 在"脚本向导"的"选择数据库"中, 确定选择的是要转到2000的库 -- 勾选"为所选数据库中的所有对象编写脚本" -- 在接下来的"选择脚本选项"中, ... 阅读全文
posted @ 2009-11-09 00:54 吹啵糖こ 阅读(1014) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2009-11-09 00:51 吹啵糖こ 阅读(210) 评论(0) 推荐(0) 编辑
摘要: namespace WebApplication6{ public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { Thre... 阅读全文
posted @ 2009-11-09 00:31 吹啵糖こ 阅读(154) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2009-10-25 13:45 吹啵糖こ 阅读(377) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2009-10-25 13:43 吹啵糖こ 阅读(515) 评论(0) 推荐(0) 编辑