in reply to Re^4: Quick 'Quote' DBI Question
in thread Quick 'Quote' DBI Question
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 ? and SSN like ? and RTRIM(LAST_NAME,' ') like upper(?) and rownum <= 1 END ; my $yi = $dbh->prepare($sql); $yi->execute($year, $ssn, $name); #--------Send the values from the query into variables ($SSNc, $LAST_NAMEc, $YEARc, $storenum) = $yi->fetchrow_array;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Quick 'Quote' DBI Question
by Joost (Canon) on Apr 06, 2007 at 15:02 UTC | |
by Trihedralguy (Pilgrim) on Apr 06, 2007 at 15:05 UTC | |
by ww (Archbishop) on Apr 06, 2007 at 15:16 UTC | |
by Trihedralguy (Pilgrim) on Apr 06, 2007 at 15:34 UTC |