在sql脚本里面如何判断2008年7月6日在没在2008年7月5日与7月7日之间呢?

[复制链接]
查看11 | 回复1 | 2011-7-28 16:58:03 | 显示全部楼层 |阅读模式
用存储过程做哈!暂时财富值就这么多了,请大家帮帮忙哈!如何答案满意的话,我还会加分的!谢谢了! 我急用……

回复

使用道具 举报

千问 | 2011-7-28 16:58:03 | 显示全部楼层
alter proc a @datetime smalldatetimeasbeginif @datetime>convert(smalldatetime,'2008-07-05') and @datetime0 and datediff(dd,tabledate,@datetime2)>0 then ture els...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行