我有这样的代码: B.plc_nomeConta, B.plc_classificador, B.plc_id,from left outer join erp_contaspagar A on B.plc_id = A.cap_idPlanoContasFin/* where A.cap_idEmpresa lik
< before_event.plc_time ORDER BY plc_time DESC LIMIT 1;
RETURN QUERY SELECT * FROM "PRD".events_logWHERE event_type_id = 102 AND machine_id=l.id AND plc_time < before_event.plc_time ORDER BY plc_time< before_event.plc_time ORDE