sql=" select count(id) as cn from orderitem where wareid=(select id from ware where compid="+getid+")";
解决方案 »
- 相关系数函数
- 三个查询结果进行连接的问题
- Microsoft SQL Server 2005 安装错误,紧急求助,谢谢啊~~~~~错误为: [Microsoft][SQL Native Client]共享内存提供程序: 超时错误 [258]
- for xml path 实现动态二维报表
- 求SQL语句,判断值是否在另外一个表(范围)中,详情如下:
- sql:SG脚本是什么呀,还有它的作用......
- 关于因为该列没有包含在聚合函数或 GROUP BY 子句中。
- 请问windows xp上装不上sql 2000怎么办?
- 简单的SQL语句
- how to get data from a image field in MS sql server and write to a image file
- 2台 sqlserver 如何進行資料同步複製
- 大家看看这段Sql语句为什么出错?困绕我几天的问题了:(
一个字段等于一个数据集么??,大哥用用脑子啊
这样啊
sql=" select count(id) as cn from orderitem where wareid in (select id from ware where compid="+getid+")";
多条记录=报错误
sql=" select count(id) as cn from orderitem where wareid in (select id from ware where compid=''"+getid+"'')"
还有,你用的是什么语言开发前台啊?又用什么数据库系统啊?