[Dbix-class] "where not exists"

Alex Povolotsky tarkhil at over.ru
Tue Apr 4 09:04:47 GMT 2017


I need to implement a query whith "where not exists", "negative join".

SELECT id,timestamp, value FROM asb_bill_tab WHERE NOT EXISTS ( SELECT 
NULL FROM asb_sb_tab WHERE id_b = id)
and timestamp >= 201701 AND value != 0 ORDER BY timestamp

Do DBIx::Class have some syntax things for it or I'd better use literal SQL?


More information about the DBIx-Class mailing list