摘要: 1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select id from t where num is null可以在num上设置默认值0,确保表中num列没有null值,然后这样查询:select id from t wh... 阅读全文
posted @ 2010-09-26 13:36 景天 阅读(278) 评论(0) 推荐(0) 编辑
摘要: SELECT dbo.订单.Id AS 订单ID, ISNULL(dbo.产品.Price, 0) + ISNULL(dbo.服务.Price, 0) AS 价格, ISNULL(dbo.产品.Name, '') + ISNULL(dbo.服务.Name, '') AS 名称FROM dbo.订单 LEFT OUTER JOIN dbo.服务 ON dbo.订单.ServiceId = dbo.服... 阅读全文
posted @ 2010-08-25 11:15 景天 阅读(255) 评论(0) 推荐(0) 编辑
摘要: Ext.MyWindow = Ext.extend(Ext.Window, { width: 300 , height: 200 , addButtons: function () { if (!this.buttons) { this.buttons = []; } Ext.each(arguments, function (arg) { this.buttons.push(arg); }, t... 阅读全文
posted @ 2010-07-10 19:43 景天 阅读(273) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Globalization;using System.Threading;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { string[] arr = { "3","1","2&quo... 阅读全文
posted @ 2009-08-21 18:09 景天 阅读(2199) 评论(1) 推荐(0) 编辑
摘要: Ext.form.Checkbox 环境说明:Ext3.0 rc3 (当然不是代表不兼容其他版本) 常规定义:var ckbox1 = new Ext.form.Checkbox({ boxLabel: "看电影", name: "interest",inputValue: 1 });设置项: 1)boxLabel是指box右边的文字;注意与另一个设置项:FieldLabel区别,FieldLab... 阅读全文
posted @ 2009-07-05 14:06 景天 阅读(2966) 评论(0) 推荐(0) 编辑
摘要: $.post(getModelUrl, { "Id": eid }, function(rs) { var jsonStore = new Ext.data.JsonStore({ data:[rs], fields:["Id","Name"] }); form.getForm().loadRecord(jsonStore.getAt(0... 阅读全文
posted @ 2009-07-05 09:54 景天 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 视图是project的术语,用来描述屏幕显示或者打印数据的方式。project使用视图这种方式来展示项目信息的各个侧面,从而可以通过不同的视图有效地查看我们所需要的信息。 一.甘特图视图 甘特图视图是以工作表和条形图的形式显示基本的任务信息。 使用甘特图完成的工作主要包括: 1.通过输入任务和每项任务所用的时间来创建一个项目。 2.通过连接任务,在任务之间建立顺序的相关性。在连接任务时,... 阅读全文
posted @ 2009-05-26 16:23 景天 阅读(670) 评论(0) 推荐(0) 编辑
摘要: [代码]来自修葺梦想Oracle 外键查询[代码]来自http://www.sosdb.com/ 阅读全文
posted @ 2009-02-11 15:33 景天 阅读(2215) 评论(0) 推荐(0) 编辑
摘要: 清空回收站清空回收站SQLPURGE Recyclebin; 阅读全文
posted @ 2009-02-11 15:03 景天 阅读(207) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2009-02-07 11:13 景天 阅读(2254) 评论(0) 推荐(0) 编辑