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

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
T
Tailwind CSS Blog
Recent Announcements
Recent Announcements
宝玉的分享
宝玉的分享
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
P
Proofpoint News Feed
D
Docker
Google DeepMind News
Google DeepMind News
aimingoo的专栏
aimingoo的专栏
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
M
MIT News - Artificial intelligence
云风的 BLOG
云风的 BLOG
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
IT之家
IT之家
H
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
Martin Fowler
Martin Fowler
S
SegmentFault 最新的问题
B
Blog
D
DataBreaches.Net

博客园 - 王德田

将页面的控件值给实体自动赋值 lookUpEdit 绑定数据的使用 解除劳动合同是如何赔偿的 水晶报表运行环境包 改iis的asp.net版本命令 NewtonJSONHelper 正则表达式全部符号解释 jquery 获取select 选择的文本 sqlserver 将数据导成insert语句存储过程 整库 linq 反匹配 this.EditingArea' 为空或不是对象 setInterval 例子 C# 字符串 转byte 数组和byte数组转 字符串函数 JSONConverter 查询oracle 用户的存储过程 update 关联表 更新 正则表达式介绍 电容的种类与用途,基本知识 电容介绍|电容的种类和作用
sql多条件检索
王德田 · 2011-07-21 · via 博客园 - 王德田

AND (ISNULL(@DateType,-1)=-1 or (@DateType=1 AND ((ISNULL(@StartDate,'')='01  1 1900 12:00AM' OR A.CreateDate>=@StartDate+' 00:00:00' ) AND (ISNULL(@EndDate,'')='01  1 1900 12:00AM' OR A.CreateDate<=@EndDate +'23:59:59')))
or (@DateType=2 AND ((ISNULL(@StartDate,'')='01  1 1900 12:00AM' OR A.SolveDate>=@StartDate+' 00:00:00' ) AND (ISNULL(@EndDate,'')='01  1 1900 12:00AM' OR A.SolveDate<=@EndDate +'23:59:59')))
or (@DateType=3 AND ((ISNULL(@StartDate,'')='01  1 1900 12:00AM' OR A.CloseDate>=@StartDate+' 00:00:00' ) AND (ISNULL(@EndDate,'')='01  1 1900 12:00AM' OR A.CloseDate<=@EndDate +'23:59:59')))
)

sql多条件检索

and (ISNULL(@DateType,-1)=-1 or (@DateType=1 or createdate>@startDate))