关于全文检索按照日期的排序问题
摘要:根据全文检索的规则,信息是不会根据日期排序的,而是根据信息的匹配度排序,所以在网上查了一些资料,最后发现可以用变通的办法,代码如下: Sort sort = new Sort();SortField sortfiled = new SortField("INDEX_CREATETIME", SortField.STRING, this.sort);//按照INDEX_CREATETIME字段排序,...
阅读全文
posted @
2009-07-23 09:38
流星陨落
阅读(905)
推荐(0)
在sql语句中判断字符是否存在,条件选择
摘要:1.使用 charindex('aa',字段名) 方法来判断一个是否存在.2.select * ,cardstatename=(case cardstate when 0 then '否' when 1 then '是' end) from tblcard
阅读全文
posted @
2009-07-09 16:14
流星陨落
阅读(2189)
推荐(0)
网页图片按比例显示缩略图的Javascript解决方法
摘要:<script language="javascript">function init(){RsizeAllImageById("imgProductItem", 150, 150);}//将页面内所有指定id的图片按比例缩放function RsizeAllImageById(id, W, H){var imgs = document.getElementsByTagName("im...
阅读全文
posted @
2009-07-07 11:32
流星陨落
阅读(940)
推荐(0)
关于委托的小实例
摘要:using System;using System.Collections.Generic;using System.Text;namespace ConsoleApplication{ class Program { static void Main(string[] args) { ClassPeople cp = new ClassPeople(); cp.DoWork("王王",cp.Sa...
阅读全文
posted @
2009-07-01 13:23
流星陨落
阅读(189)
推荐(0)