疑惑(1)
来源:互联网 发布:单片机 分布式 编辑:程序博客网 时间:2024/04/29 08:34
(1)SELECT [goods_code], client_code,[warehouse_code], sum([inputsub_checkamount]) as [inputsub_checkamount], sum([inputsub_checkamount]*[inputsub_price]) as [inputsub_checkamountMoney] FROM View_Input] where [warehouse_code] = '02' and year([inputmain_time]) =2009 AND month([inputmain_time])=4 AND [goods_code]='CP357013' AND client_code='07' group by goods_code,client_code,warehouse_code(2)select * from view_inputwhere year([inputmain_time])=2009 AND month([inputmain_time])=4为什么代码一,查询不到结果,而代码二可以查到结果。甚至代码一改成 cast(year([inputmain_time]) as varchar(4))=‘2009’ ANDcast(month([inputmain_time]) as varchar(4))=‘4’ 也不行简单的sql也可以让我发狂。
- 疑惑(1)
- PX4 代码疑惑(1)
- 关于 !1、!0、!(-1) 的疑惑
- LSIP 疑惑1
- xe5使用疑惑1
- 疑惑(关于SETPANETEXT)
- sizeof()之疑惑
- BAE(疑惑)
- 疑惑
- 疑惑
- 疑惑
- 疑惑
- 疑惑
- 疑惑
- 疑惑
- 疑惑
- 疑惑
- 疑惑
- 在XP系统中删除Vista或Windows 7的方法
- 研究生面试技巧
- 有无线网卡驱动未装有线网卡驱动所引起的BOS问题。
- c#现在有使用情况
- [转]为什么我这么低端:一个程序员的自我修养
- 疑惑(1)
- 最最喜欢的韩庚……这个资料-----顶了~/(≧▽≦)/~!!!
- 小学与大学--我的青春记忆
- 做个好的作坊也不容易 - 内容 [ 读后感]
- ubuntu 常见安装软件错误
- WPF error: does not contain a static 'Main' method suitable for an entry point
- 工作流环境再起波澜,提示“当前显示的页面中包含无效的值”
- 三元符(trigraphs)
- Google 的另类使用