(select count(*) from t_familymember tf where tf.familyid in (select familyid from t_publicrentcontract
where operationtype=3 and familyid in
(select id from t_familybasicinfo where county=305 and id=808)))*
((select count(*)from t_publicrentcontract
where operationtype=3 and familyid in
(select id from t_familybasicinfo where county=305 and id=808)))这样写哪里错了呢?报SQL命令未正确结束
where operationtype=3 and familyid in
(select id from t_familybasicinfo where county=305 and id=808)))*
((select count(*)from t_publicrentcontract
where operationtype=3 and familyid in
(select id from t_familybasicinfo where county=305 and id=808)))这样写哪里错了呢?报SQL命令未正确结束
解决方案 »
- 消息“cannot read: D:/javaExercise/mailPrj/mailModule/sendmail.htm.java”是什么原因???
- 【急!!!】如何在struts的Action中取realPath问题 ---在线等
- 在线等,weblogic下运行出现数据源连接错误.
- Caused by: java.text.ParseException: Unparseable date: "16/10/2013"?
- 解析XML问题
- Sun Java System Portal Server 6.2 配置失败
- 关于接口不明白的地方:
- xml和http的问题
- 关于zxing读取条形码的问题
- Java 关于webservice的问题
- 谁能给个SSH2 列表分页的简单例子
- 奋战2周struts2+Hibernate+spring+extjs的图书管理系统终于完成了!发帖纪念一下
FROM t_familymember tf
WHERE tf.familyid IN
(SELECT familyid
FROM t_publicrentcontract
WHERE operationtype = 3
AND familyid IN
(SELECT id
FROM t_familybasicinfo
WHERE county = 305 AND id = 808)))
*( (SELECT COUNT ( * )
FROM t_publicrentcontract
WHERE operationtype = 3
AND familyid IN (SELECT id
FROM t_familybasicinfo
WHERE county = 305 AND id = 808)))
from dual
FROM t_familymember tf
WHERE tf.familyid IN
(SELECT familyid
FROM t_publicrentcontract
WHERE operationtype = 3
AND familyid IN
(SELECT id
FROM t_familybasicinfo
WHERE county = 305 AND id = 808)))
*( (SELECT COUNT ( * )
FROM t_publicrentcontract
WHERE operationtype = 3
AND familyid IN (SELECT id
FROM t_familybasicinfo
WHERE county = 305 AND id = 808)))