in reply to Quick 'Quote' DBI Question
I understand what I did wrong here, placeholders, got it - Whoops.$name = q{%} . $name; my $sql = <<"END" SELECT SSN, RTRIM(LAST_NAME,' '), TO_CHAR(BIRTH_DATE,'YYYY'), STORE FROM PYHADMIN.PY_EMP_SHADOW where TO_CHAR(BIRTH_DATE,'YYYY') like '$year' and SSN like '%$ssn' and RTRIM(LAST_NAME,' ') like upper('$name') and rownum <= 1 END ; my $yi = $dbh->prepare($sql); $yi->execute(); #--------Send the values from the query into variables ($SSNc, $LAST_NAMEc, $YEARc, $storenum) = $yi->fetchrow_array;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Quick 'Quote' DBI Question
by Joost (Canon) on Apr 06, 2007 at 14:00 UTC | |
by Trihedralguy (Pilgrim) on Apr 06, 2007 at 14:07 UTC | |
by Joost (Canon) on Apr 06, 2007 at 14:23 UTC | |
by Trihedralguy (Pilgrim) on Apr 06, 2007 at 14:56 UTC | |
by Joost (Canon) on Apr 06, 2007 at 15:02 UTC | |
|