select * from table b where (select sum(je) from table where cid<=b.cid) <= 65
为什么换成:
delete from table b where (select sum(je) from table where cid<=b.cid) <= 65
就不可以了呢,提示有语法错误
请问这句delete 该如何改写才能满足条件,但又不会有语法错误呢,谢谢
------解决方案--------------------
- SQL code
delete tfrom t awhere (select sum(je) from t where cid <=a.cid) <= 65
------解决方案--------------------
delete b from table b where (select sum(je) from table where cid <=b.cid) <= 65