Re: bind_param oddity?
- From: martin.hall@xxxxxxxxxx (Martin Hall)
- Date: Wed, 22 Nov 2006 17:26:13 +0000
Kevin Spencer wrote:
Hi guys,
I'm sure I'm missing something *very* obvious but this one has me
scratching my head. Using DBI 1.52, DBD::mysql 3.0007, Perl 5.8.8,
MySQL 5.0.18.
.....
Now, because I want use use placeholders instead, I attempt the following:I'm pretty sure that you can't use bind variables in place of table names. Certainly true of Oracle stuff.
my $SQL = <<EOSQL;
select count(*) from ?
where TRXSTATUS = ?
and (UNIX_TIMESTAMP() - UNIX_TIMESTAMP(TRXTIMESTAMP)) < ?
EOSQL
Anyone see an obvious error in my code that I'm overlooking?
Thanks.
--
Kevin.
Martin
.
- References:
- bind_param oddity?
- From: Kevin Spencer
- bind_param oddity?
- Prev by Date: RE: "the same compiler that was used..."
- Next by Date: Re: bind_param oddity?
- Previous by thread: Re: bind_param oddity?
- Next by thread: Re: bind_param oddity?
- Index(es):
Relevant Pages
|