Help for this page

Select Code to Download


  1. or download this
    $schema->resultset('foo')->search_literal('EXCEPT SELECT * FROM bar')
    
  2. or download this
    SELECT * FROM foo WHERE ( EXCEPT SELECT * FROM BAR )
    
  3. or download this
    $schema->resultset('items')->search({'mapping.container_id' => 1}, {jo
    +in => 'mapping'});
    
  4. or download this
    SELECT * FROM items LEFT JOIN mapping ON (items.item_id = mapping.item
    +_id) WHERE mapping.container_id = 1
    
  5. or download this
    SELECT items.item_id FROM items LEFT JOIN mapping ON (items.item_id = 
    +mapping.item_id) 
      EXCEPT SELECT items.item_id FROM items LEFT JOIN mapping ON (items.i
    +tem_id = mapping.item_id) WHERE mapping.container_id = 1