datediff(M,日期时间,'2013/1/16') = 0 使用
lflsg 2013-04-22 04:31:02 select * from Sheet where 姓名='焦鹏飞' and datediff(M,日期时间,'2013/4/22') = 0
我VS SQL Sever 中使用上述 查询语句 执行成功,但是我在C#中提示:
在将 nvarchar 值 'datediff(M,日期时间,'2013/4/22') = 0' 转换成数据类型 int 时失败。
请问这为啥?那里错了?