SELECT * FROM ET_CHARGE_PILE_DATA_INFO where data_status='normal'
MINUS
SELECT * FROM ET_CHARGE_PILE_DATA_INFO where charge_pile_info_id in (
select id from ET_CHARGE_PILE_INFO where CHARGE_STATION_INFO_id in(
select id from ET_CHARGE_STATION_INFO where operator_id in (
select id from ET_OPERATOR))) and data_status='normal'
前提是两条SQL查询出来的字段一模一样,则可以用 “MINUS”连接相减,得出差集