Also, I'm used to selecting a number of rows from a mysql database and running over it with sth->fetch and bind_column. Is there a way I can set a variable to a one-column select? Ie. my $name = qq(select name from db where id="1");
My current problem is
my $data = qq(SELECT catname, path FROM categories WHERE path =~ m/ +^$path/ && path != "$path"); my $sth = $dbh->prepare($data); $sth->execute() or die $dbh->errstr;
In reply to how to use regexes in SELECT statement by coldfingertips
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |