Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I am using DBI to communicate with MySQL database, and I am also using placeholders in a function like this:
my $selectdata = $dbh->prepare("SELECT * FROM data WHERE content = ?");However, when I execute this statement, it comes up with case-insensitive match (i.e. it selects all rows where content is "Perl", "PERL" and "perl" when I supply "Perl" to the execute() method)
Is there an easy way to enable case-sensitive matches? I have read through DBI documentation, but I only seem to find a chapter of how to get information about case-sensitivity of the DBI driver itself and not on statement-to-statement basis.
I am sorry if this is a dumb question, please push me into the right direction
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI case-insensitive placeholders
by dbwiz (Curate) on Oct 27, 2003 at 14:41 UTC | |
|
Re: DBI case-insensitive placeholders
by hardburn (Abbot) on Oct 27, 2003 at 14:32 UTC | |
by Anonymous Monk on Oct 27, 2003 at 14:41 UTC |