The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

SQL::Builder::Intersect - Represent a SQL 'INTERSECT' junction

SYNOPSIS

This class can generate:

        anything INTERSECT anything

Basically, do:

        my $intersection = SQL::Builder::Intersect->new;

        $intersection->list_push("SELECT 1");
        $intersection->list_push("SELECT 2");

        # SELECT 1 INTERSECT SELECT 2
        print $intersection->sql

DESCRIPTION

This is a subclass of SQL::Builder::Junction(3)

METHODS

init()

Sets the junction() value to "INTERSECT"

SEE ALSO

SQL::Builder::Junction(3) SQL::Builder::List(3) SQL::Builder::Base(3) SQL::Builder(3) SQL::Builder::Except(3) SQL::Builder::Union(3)