in reply to DBI, quoting and like - SQLite

We still have no clue why the origional version refuses to work. But via the ChatterBox, we found another, simpler solution that does work:
$name = "kylere'"; my $sql = "SELECT Name FROM $table WHERE Name like ? order by Name"; # ... or order by whatever, it doesn't matter my $ids = $dbh->selectcol_arrayref($sql, undef, "$name%");

Replies are listed 'Best First'.
Re: Re: DBI, quoting and like - SQLite
by castaway (Parson) on Feb 25, 2003 at 09:30 UTC
    I've actually just commented out the 'execute' line, and added the parameters to selectcol_arrayref, as bart suggested, which also works. Still no clue as to why.
    Thanks bart!

    C.