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

推荐订阅源

aimingoo的专栏
aimingoo的专栏
G
Google Developers Blog
B
Blog RSS Feed
A
About on SuperTechFans
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
V2EX
Stack Overflow Blog
Stack Overflow Blog
C
Check Point Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Engineering at Meta
Engineering at Meta
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 司徒正美
D
Docker
F
Fortinet All Blogs
Hugging Face - Blog
Hugging Face - Blog
Last Week in AI
Last Week in AI
H
Help Net Security
WordPress大学
WordPress大学
MyScale Blog
MyScale Blog
博客园 - Franky
人人都是产品经理
人人都是产品经理
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Blog — PlanetScale
Blog — PlanetScale
L
LangChain Blog

博客园 - Blue

个已实现的例子:通过Javascript在页面中直接调用Office Communicator API - Blue cmd脚本(C# 清缓存) - Blue - 博客园 isql脚本编写创建数据库(SQL Server2000) 怎样踢mstsc占用者 copy:键盘按键和键盘对应代码表 Thread简单概念 转:ListView 中添加大数据量解决屏幕刷新“闪”的现象 Regsvr32命令全攻略 导入导出CVS文件遇到的问题 - Blue - 博客园 一个字段存很多枚举值,然后从字段取出的方法 關於泛型的資料 索引器的两种用法 在建表时使用DEFAULT是很有用的 关于web service的验证 SQL中计算月初和月末 临时表有时很有用 在GROUP语句中还可以增加很多内容 注意insert语句写法 尽量减少使用游标
case的用法
Blue · 2005-12-31 · via 博客园 - Blue

--没用
select @str_day=
 case
  when datepart(m,@dat_Month)=2 and datepart(year,@dat_Month)<>2008 then '28'
  when datepart(m,@dat_Month)=1 or datepart(m,@dat_Month)=3  or datepart(m,@dat_Month)=5  or datepart(m,@dat_Month)=7  or datepart(m,@dat_Month)=8  or datepart(m,@dat_Month)=10  or datepart(m,@dat_Month)=12 then '31'
  when datepart(m,@dat_Month)=4 or datepart(m,@dat_Month)=6  or datepart(m,@dat_Month)=9  or datepart(m,@dat_Month)=11  then '30'
  else '29'
 end
 set @date2=cast(DATEPART(yyyy, @dat_Month) as varchar(4))+'-'+cast(DATEPART(m, @dat_Month)as varchar(2))+'-'+@str_day+' 23:59:59'
 set @date1=cast(DATEPART(yyyy, @dat_Month) as varchar(4))+'-'+cast(DATEPART(m, @dat_Month)as varchar(2))+'-1'
--print @date1
--print @date2
--没用~