YanoRyuichi.com/
Wiki
Blog
GitHub
Sandbox
開始行:
* 値のエスケープ [#aefa739b]
my $name = "taro";
my $dbh = $c->model('DBIC')->schema->storage->dbh;
my $rs = $c->model('DBIC::Users');
my $_name = $dbh->quote('%' . $name . '%');
$rs = $rs->search_like( { name => \$_name } );
http://search.cpan.org/perldoc?DBI#quote
終了行:
* 値のエスケープ [#aefa739b]
my $name = "taro";
my $dbh = $c->model('DBIC')->schema->storage->dbh;
my $rs = $c->model('DBIC::Users');
my $_name = $dbh->quote('%' . $name . '%');
$rs = $rs->search_like( { name => \$_name } );
http://search.cpan.org/perldoc?DBI#quote
ページ名: