惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Webroot Blog
Webroot Blog
U
Unit 42
A
About on SuperTechFans
宝玉的分享
宝玉的分享
月光博客
月光博客
C
CERT Recently Published Vulnerability Notes
P
Privacy International News Feed
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
P
Privacy & Cybersecurity Law Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
S
Securelist
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Spread Privacy
Spread Privacy
L
Lohrmann on Cybersecurity
Apple Machine Learning Research
Apple Machine Learning Research
K
Kaspersky official blog
Hugging Face - Blog
Hugging Face - Blog
B
Blog
I
Intezer
Last Week in AI
Last Week in AI
T
Threat Research - Cisco Blogs
V
V2EX
L
LangChain Blog
AI
AI
G
GRAHAM CLULEY
T
Tor Project blog
人人都是产品经理
人人都是产品经理
D
Docker
WordPress大学
WordPress大学
Google DeepMind News
Google DeepMind News
I
InfoQ
Y
Y Combinator Blog
C
Comments on: Blog
GbyAI
GbyAI
www.infosecurity-magazine.com
www.infosecurity-magazine.com
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Tailwind CSS Blog
aimingoo的专栏
aimingoo的专栏
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
腾讯CDC
N
News and Events Feed by Topic
MyScale Blog
MyScale Blog
H
Help Net Security
Vercel News
Vercel News
T
Tenable Blog
博客园 - 三生石上(FineUI控件)
爱范儿
爱范儿

博客园 - 站长资源交易专业网

关于asp.net中gridview的问题,关于footer,16aspx上下的英语交流网程序,管理员的添加和修改有问题 asp.net 网站模板怎么用,就是16aspx上面下下来的模板,里面有个sln文件,其他全是文件夹的东西 我在16aspx网上下载了个C#源码,如何能在我自己的计算机上跑起来,很急!求详细操作过程! 在16aspx.com上下了一个简单商品房销售系统源码,怎么修改它的默认登录名和密码 16aspx源码要求安装.csproj类型怎么安装 我在16ASPX下了一个系统是ACCESS和VS2005做的我想把那个连接数据库的'DB_16aspx'的名字改了进不了了可是? 请教一下16aspx上的源代码要如何在自己的服务器上运行 我从16ASPX上下了一个程序在运行时出错是怎么回事?运行时出现用户SA登陆失败,但是我已经把数据库导入SQL 在16aspx.com上下了一个.net程序,怎么修改它的默认登录名和密码? asp.net如何更改默认的登陆帐号/密码:16aspx/16aspx 16Aspx.com-PHP企业整站源码 景观石材大理石类织梦模板 含手机移动端 完整源码 APP+PC 16Aspx.com-将15位身份证转换成18位 16Aspx.com-书通网中小学生免费在线学习网站源码 带采集带手机版帝国cms内核 16Aspx.com源码2014年7月详细 Web电子商务网(三层)V2.0源码 毫秒级百万数据分页存储过程 C#做的一个加密/解密的类 private、 protected、 public、 internal 修饰符 SQLSERVER一些公用DLL的作用解释
sql: 生日三个月内有效
站长资源交易专业网 · 2014-08-06 · via 博客园 - 站长资源交易专业网
DECLARE @birthday  datetime,@stat datetime,@end datetime,@statbirthday datetime,@endbirthday datetime,@thirdbirthday datetime,@firthbirthday datetime, @year int,@month int , @day int,@str varchar(20),@total int,@firthmonth int,@thirmonth int,@now  datetime,@vipno nvarchar(10) --参数    
set @vipno=''8888888''   
set @now=''2014-01-25''   
set @year=Year(@now)    
select  @birthday=birthday from vip1 where vipno=@vipno    
set @month=month(@birthday)    
set @day=day(@birthday)    
set @str=cast(@year as varchar(4))+''-''+cast(@month as varchar(2))+''-''+cast(@day as varchar(2))    
set @birthday=cast(@str as datetime)    
--會員生日有效生首日起至3個月內有效    
set @firthbirthday=DATEADD(mm, DATEDIFF(mm,0,@birthday)-2, 0)--DATEADD(mm, DATEDIFF(mm,0,@birthday), 0)  --当月的第一天    
--set @thirdbirthday=DATEADD(ms,-3,DATEADD(mm, DATEDIFF(m,0,getdate())+3, 0)) --后三个月最后的一天    
SELECT @firthbirthday=DATEADD(MONTH,-2,DATEADD(MONTH,DATEDIFF(MONTH,0,@birthday),0))    
--select cast(@firthbirthday as datetime)    
--set @firthbirthday=DATEADD(MONTH,-2,DATEADD(MONTH,DATEDIFF(MONTH,0,@birthday),0))--DATEADD(Month,0,CONVERT(datetime,CONVERT(char(8),getdate(),120)+''1''))    
--select @firthbirthday    
--DATEADD(mm,0, DATEDIFF(mm,0,@birthday), 0)  --前三个月的第一天    
--set @firthbirthday=convert(datetime, @thirdbirthday)    
--SELECT  三個月有效 塗聚文 涂聚文    
set @firthmonth=month(@now)-2    
set @thirmonth=month(@now)    
set @thirdbirthday=DATEADD(ms,-3,DATEADD(mm, DATEDIFF(mm,0,@now)+1, 0)) --当月最后的一天    
set @thirdbirthday=cast(@thirdbirthday as datetime)    
set @statbirthday=DATEADD(mm, DATEDIFF(mm,0,@birthday)-13, 0)    
set @endbirthday=DATEADD(ms,-3,DATEADD(mm, DATEDIFF(mm,0,@birthday)-1, 0))    
--select @statbirthday,@endbirthday,@firthbirthday,@thirdbirthday,@birthday,@firthmonth,@thirmonth    
--以月份來吧    
SELECT  *  FROM View_birthdayVipdlyList WHERE DATEDIFF(month,NowBirthday,@now)>=0 and  DATEDIFF(month,NowBirthday,@now)<=2  and vipno=@vipno order by VipBirthdayDate desc   
   
--SELECT  *  FROM vip1 WHERE indate>@statbirthday AND  indate<@endbirthday and  month(birthday)>=@firthmonth and month(birthday)<=@thirmonth --and vipno=@vipno    
   
--SELECT @total=ISNULL(SUM(amount),0) FROM View_birthdayVipdlyList WHERE indate>@statbirthday AND  indate<@endbirthday and  month(birthday)>=@firthmonth and month(birthday)<=@thirmonth and vipno=@vipno    
--SELECT @total=@total*.01     
   
   
   
SELECT  count(*) as ''total''  FROM View_birthdayVipdlyList WHERE DATEDIFF(month,NowBirthday,getdate())>=0 and  DATEDIFF(month,NowBirthday,getdate())<=2  and vipno=@vipno    
   
   
if exists (select * from dbo.sysobjects where id = object_id(N''[dbo].[GetVipNowBirthday]'') and xtype in (N''FN'', N''IF'', N''TF''))    
drop function [dbo].[GetVipNowBirthday]    
GO    
CREATE   function  GetVipNowBirthday    
(      
   @vipno nvarchar(10), --参数    
   @now datetime    
)    
returns datetime    
AS   
begin   
declare @NowBirthday datetime, @birthday  datetime,@stat datetime,@end datetime,@statbirthday datetime,@endbirthday datetime,@thirdbirthday datetime,@firthbirthday datetime, @year int,@month int , @day int,@str varchar(40),@total decimal   
   
select @birthday=birthday from vip1 where vipno=@vipno and birthday is not null   
set @year=Year(@now)    
if month(@now)=1 and month(@birthday)=12    
begin   
   set @year=@year-1    
end   
if month(@now)=1 and month(@birthday)=11    
begin   
   set @year=@year-1    
end   
if month(@now)=2 and month(@birthday)=12     
begin   
   set @year=@year-1    
end   
set @month=month(@birthday)    
set @day=day(@birthday)    
set @str=cast(@year as varchar(4))+''-''+cast(@month as varchar(2))+''-''+cast(@day as varchar(2))    
set @NowBirthday=convert(datetime,@str) ---cast(@str as datetime)    
return @NowBirthday    
end   
GO    
   
select top 100  vipno,birthday,[dbo].[GetVipNowBirthday](vipno,''2014-03-23'') as ''now'' from dbo.vip1 where month(birthday)=12 or month(birthday)=11