摘要: 说起园子,我已经来了很久,但是写点个人的心得还是头一次,感觉上还是很紧张的!最近有写一些sql句子,总是碰到像是在 where 条件之后需要加一些判断的情况:举些列子来说明我碰到的情况:1.根据传递的参数来拉退票的订单:declare @isRtn intset @isRtn=1select * from SalesOrderLinewhere InputDateTime>='2013-5-1' and state=2and((@isRtn=1 and OriginalSOLID is not null) or(@isRtn=0 and OrigianlSOLID is 阅读全文
posted @ 2013-11-20 13:52 00jiajia 阅读(993) 评论(0) 推荐(0) 编辑