11 2012 档案

摘要:1.bar.html<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>进度条</title> <script la 阅读全文
posted @ 2012-11-16 13:52 甜菜波波 阅读(240) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Xml.Linq;using System.Data.SqlClient;using System.Text;using System.IO;using System.Collections;using System.Data;using Lucene.Net.Documents;using Lucene. 阅读全文
posted @ 2012-11-14 13:42 甜菜波波 阅读(224) 评论(0) 推荐(0) 编辑
摘要:微软企业库需下载安装1.添加引用Microsoft.Practices.EnterpriseLibrary.Data;Microsoft.Practices.EnterpriseLibrary.Common;2.命名空间引用using System.Data.Common;using Microsoft.Practices.EnterpriseLibrary.Data;3.配置 web.config文件<add name="yoyo" connectionString="server=.;uid=sa;pwd=j;database=yoyo_jx" 阅读全文
posted @ 2012-11-13 14:25 甜菜波波 阅读(240) 评论(0) 推荐(0) 编辑
摘要:1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如: select id from t where num is null 可以在num上设置默认值0,确保表中num列没有null值,然后这样查询: select id from t where num=0 3.应尽量避免在 where 子句中使用!=或<>操作符,否则将引擎放弃使用索引而进行全表扫描。 4.应尽量避免在 where 子句中使用 or 来连接条件,否则 阅读全文
posted @ 2012-11-13 13:32 甜菜波波 阅读(192) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示