RE: bind_param oddity?
- From: Philip.Garrett@xxxxxxxxxxx (Philip Garrett)
- Date: Wed, 22 Nov 2006 12:22:14 -0500
Kevin Spencer wrote:
Hi guys,[snip]
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.
my $SQL = <<EOSQL;
select count(*) from ?
where TRXSTATUS = ?
and (UNIX_TIMESTAMP() - UNIX_TIMESTAMP(TRXTIMESTAMP)) < ?
EOSQL
You can't bind a table name -- binding is only for "value" types.
This is attempting to execute:
select count(*) from 'CCHISTORY' ... (which won't run in mysql either)
Regards,
Philip
.
- Follow-Ups:
- Re: bind_param oddity?
- From: Kevin Spencer
- Re: bind_param oddity?
- Prev by Date: Re: bind_param oddity?
- Next by Date: RE: "the same compiler that was used..."
- Previous by thread: Re: bind_param oddity?
- Next by thread: Re: bind_param oddity?
- Index(es):
Relevant Pages
|