主题:请教一个问题!望能给于指导!!
sj字段名,定义为datetime!
使用:select sj from tablename where sj=convert(char,getdate(),102)
可以查到当天结果。
但我查想第二天的数据,用:
select sj from tablename where sj=covnert(char,dateadd(day,1,getdate()),102)
就没有显示。
这是为什么?还有什么其他方法?希望各位高手给于指导!
使用:select sj from tablename where sj=convert(char,getdate(),102)
可以查到当天结果。
但我查想第二天的数据,用:
select sj from tablename where sj=covnert(char,dateadd(day,1,getdate()),102)
就没有显示。
这是为什么?还有什么其他方法?希望各位高手给于指导!