首页 新闻 论坛 群组 Blog 文档 下载 读书 Tag 网摘 搜索 .NET Java 游戏 视频 人才 外包 数据库 第二书店 程序员

a11377815/ 


共49个网摘 [ 1  2 ]  下一页  |  访问a11377815的个人空间

请问,怎么实现''查询最近10天要过生日的会员''

a11377815收录,时间:2008-2-13 13:09:43 | 相关网摘我也收藏

select * from
(select *,NextBD=case when dateadd(yy,datediff(yy,birthday,getdate()),birthday)> getdate() then dateadd(yy,datediff(yy,birthday,getdate()),birthday) else dateadd(yy,datediff(yy,birthday,getdate()) 1,birthday) end from base_user) as tb
where datediff(d,getdate(),NextBD) between 0 and 10 and datepart(d,birthday)=datepart(d,NextBD)


赶集网网页采集功能!

a11377815收录,时间:2008-1-23 9:25:32 | 相关网摘我也收藏

using System; using System.Collections.Generic; using System.Text; using System.Net; using System.Text.RegularExpressions; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string url = @"http://sh.ganji.com/piao/"; WebClient wc = new WebClient(); Console.WriteLine("正在下载文件....."); string html = wc.DownloadString(url); string pattern = @" (? (?: (?!)[\s\S] )* ) [^<>]* (? (?: (?!)[\s\S] )* ) [^<>]* (? (?: (?!)[\s\S] )* ) [^<>]* (? (?: (?!)[\s\S] )* )"; Regex reg = new Regex(pattern, RegexOptions.IgnorePatternWhitespace | RegexOptions.IgnoreCase); Regex reg_tag = new Regex(@"<[^<>]*>"); foreach (Match m in reg.Matches(html)) { Console.WriteLine(string.Format("标题:{0}",reg_tag.Replace(m.Groups["标题"].Value,""))); Console.WriteLine(string.Format("发车时间:{0}", m.Groups["发车时间"].Value)); Console.WriteLine(string.Format("起点终点:{0}", m.Groups["起点终点"].Value)); Console.WriteLine(string.Format("发布时间:{0}", m.Groups["发布时间"].Value)); } } } }


javascript秒表问题

a11377815收录,时间:2007-12-19 11:48:21 | 相关网摘我也收藏



}
function startclock(){se=setInterval("second()",1);}
后台用asp.net开发



共49个网摘 [ 1  2 ]  下一页

a11377815/相关标签



    网站简介广告服务网站地图帮助联系方式诚聘英才English 问题报告
    北京创新乐知广告有限公司 版权所有 京 ICP 证 070598 号
    Copyright © 2000-2008, CSDN.NET, All Rights Reserved