| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Chris | Date: | March 25 1999 2:39pm |
| Subject: | Re: Extracting a given row using Perl API | ||
| View as plain text | |||
Bill, try this:
my $sth = $dbh->prepare("SELECT first,last,phone FROM $table WHERE
phone_book.last='$FOO'");
You must ensure that there are quotes around $FOO.
--Chris
> my $sth = $dbh->prepare("SELECT first,last,phone FROM $table WHERE
> phone_book.last='Blow'");
>
> works while the following does not;
>
> my $sth = $dbh->prepare("SELECT first,last,phone FROM $table WHERE
> phone_book.last=$FOO");
| Thread | ||
|---|---|---|
| • Extracting a given row using Perl API | William R. Mattil | 25 Mar |
| • Re: Extracting a given row using Perl API | Aldrian Gintingsuka | 25 Mar |
| • Re: Extracting a given row using Perl API | Vivek Khera | 25 Mar |
| • Re: Extracting a given row using Perl API | Chris | 25 Mar |
| • Re: Bug report | Fred van Engen | 16 Feb |
| • Re: Extracting a given row using Perl API | Derick H Siddoway | 25 Mar |
| • Re: Extracting a given row using Perl API | Vivek Khera | 25 Mar |
