string str = "select SellInfo.WareNum as WareNum,WareInfo.WareName as WareName,count(SellInfo.WareID) as " +
" SellNum,sum(SellInfo.SellPrice) as AllMoney,sum(SellInfo.Profit) as AllProfit from SellInfo inner " +
"join WareInfo on SellInfo.WareNum=WareInfo.WareNum" +
" where SellInfo.MulID='" + mulID + "' and SellInfo.SellTime between #" + time1 + "# and #" + time2 +
"# group by SellInfo.WareNum,WareInfo.WareName " +
"order by SellInfo.WareNum";
这里的红色部分不知道有什么问题,我去掉后就可以正常.但是又必需加上这个限定条件.请高手指教.谢谢了.
" SellNum,sum(SellInfo.SellPrice) as AllMoney,sum(SellInfo.Profit) as AllProfit from SellInfo inner " +
"join WareInfo on SellInfo.WareNum=WareInfo.WareNum" +
" where SellInfo.MulID='" + mulID + "' and SellInfo.SellTime between #" + time1 + "# and #" + time2 +
"# group by SellInfo.WareNum,WareInfo.WareName " +
"order by SellInfo.WareNum";
这里的红色部分不知道有什么问题,我去掉后就可以正常.但是又必需加上这个限定条件.请高手指教.谢谢了.
解决方案 »
- datdgrideview的插入行和删除行
- ??!!新手求救,找不到webborwser,环境为Visual Studio .NET 2003
- C# 中二维数组 怎么取其中一维
- panel上画图,移动panel位置和改变panel大小,不停地闪烁
- 救命 呀呀呀 !!!!! .net编译器用不成列
- skype,windows service 服务, c#
- 如何用反射创建基本类型?
- 关于得到datagrid选中的行的具体信息
- 快来救命啊,急死了。。。。打开项目都打不开。
- 如何根据 ParameterInfo 获取 参数对象。
- WCF 的事务机制也是通过DTC来实现的?还是它本身有一套事务机制?
- 怎么解决输入字符串的格式不正确
select * from table1 inner join table2 on table1.id = table2.id
select * from table1 , table2 where table1.id = table2.id 这2个结果一样,但还是有区别的。