启天JAVA培训社区's Archiver

雨夜的寂寞 发表于 2007-2-5 16:34

提供个sql

本来是不久前公司同事请教的.
提供上来..过滤掉一个表中一个数字正负都存在的数据.

select * from rain where rain.pid>0 and rain.pid not in
(select abs(pid) from rain where pid<0)

junsan 发表于 2008-9-22 11:05

一点一点的积累

页: [1]

Powered by Discuz! Archiver 6.1.0F  © 2001-2007 Comsenz Inc.