thelma1944 has asked for the wisdom of the Perl Monks concerning the following question:
which results in the sql command:$hub_sql_cmd = "select DISTINCT $hub_stuff[$c][1] from $hub_stuff[$c][0]" ; $temp = $hub_sql_cmd . " where $hub_stuff[$c][1] = '$line2[$ +c]'"; $hub_sth = $hub_dbh->prepare($temp) or die "Couldn\'t prepare statement: " . $hub_dbh->errstr; $hub_sth ->execute || die "Couldn\'t execute statement"; @line = $hub_sth->fetchrow_array;
AUDCTIME is a time stamp with a format of <date> <time> What the program NEEDs to get is the <time> value. When the perl code runs i get the <date> and that is all. The <time> is NOT brought into the array "@line".select DISTINCT AUDCTIME from mpi_audhead where AUDRECNO = 2.
Any meaningful suggestions?
You may send a reply to thelma1944@gmail.comThank you so very much!
-thelma
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: dbi fetchrow_array to access a timestamp
by runrig (Abbot) on Aug 18, 2009 at 23:34 UTC | |
by kennethk (Abbot) on Aug 19, 2009 at 01:23 UTC | |
|
Re: dbi fetchrow_array to access a timestamp
by sanku (Beadle) on Aug 25, 2009 at 04:23 UTC |