相做一个存储过程,sql语句也行,请教 select * from table1 a, table1 bwhere a.收付类别 = b.收付类别and a.费名 = b.费名and a.金额 = 0 - b.金额 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from 表 tem where exists (select 1 from 表 where 金额=-tem.金额 and 收付类别=tem.收付类别 and 费名=tem.费名 ) select * from 你的表 where 金额=-10 and 收付类别='应收' and 费名='卫生费' 根据现有记录查询select * from 你的表 a ,(select * from 你的表 where 记录查询条件) b where a.金额=-b.金额 and a.收付类别=b.收付类别 and a.费名=b.费名 select * from 你的表 a ,(select * from 你的表 where 记录查询条件) b where a.金额=-b.金额 and a.收付类别=b.收付类别 and a.费名=b.费名 求1个COPY数据的最快方法. 如何删除“表”中重复的记录??? sql 读写txt,xml文件 同一个学号同一门课程想取一个高分并设置有效字段值为是,请前辈指导一下,小弟先感谢了! SQL 2005 合并复制在进行数据同步时,无法操作所有表 请教sql在.net下的超时问题 怎么找出跨百的记录? 请问job设置完成后保存在那个系统表中? SQL疑难 急聘全职Delphi程序员! 可以把ACCESS导入SQL吗? SQL 存储过程 错误
where 金额=-10 and 收付类别='应收' and 费名='卫生费'
,(select * from 你的表 where 记录查询条件) b
where a.金额=-b.金额 and a.收付类别=b.收付类别 and a.费名=b.费名
,(select * from 你的表 where 记录查询条件) b
where a.金额=-b.金额 and a.收付类别=b.收付类别 and a.费名=b.费名