SQL::OOP::Delete
use SQL::OOP::Delete; my $delete= SQL::OOP::Delete->new(); # set clause $delete->set( $delete->ARG_TABLE => 'some_table', $delete->ARG_WHERE => SQL::OOP::Where->cmp('=', 'a', 'b'), ); # reset clause by plain text $delete->set( $delete->ARG_WHERE => 'a = b' ); my $sql = $delete->to_string; my @bind = $sth->execute($delete->bind);
SQL::OOP::Delete class represents Delete commands.
Constructor. It takes arguments in hash. The Hash keys are provided by following methods. They can call either class method or instance method.
ARG_TABLE ARG_WHERE
This method resets the clause data. It takes same argument as constructor.
argument key for table name(=1)
argument key for where clause(=2)
To install SQL::OOP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SQL::OOP
CPAN shell
perl -MCPAN -e shell install SQL::OOP
For more information on module installation, please visit the detailed CPAN module installation guide.