executing an sql statement in perl
- From: "MMWJones@xxxxxxxxxxxxxx" <MMWJones@xxxxxxxxxxxxxx>
- Date: 21 May 2007 03:11:40 -0700
If this is the wong board to post this question can someone guide me
to the correct board...
I have an sql statement that is in single quotes
or $dbh->do ('update test set (mudid, date_of_last_entrym
number_of_entries) = (select mudid, max(thetime) as
date_of_last_entry, count(*) as number_of_entries from log@test l,
user@test u
where l.user = u.user
and mudid = '$a'
and thetime > sysdate - 90
group by mudid)')
where $a is defined as the id.
however i don't think it likes the 2 sets of single quotes. I have to
use single quotes as otherwise the @ symbols aren't read correctly.
The below sql statement works fine directly in my sql program (TOAD)
and this is why i think it is a perl problem:
select id, max(thetime) as date_of_last_entry, count(*) as
number_of_entries from log@test l, user@test u
where l.user = u.user
and id = 'MATT'
and thetime > sysdate - 90
group by id
any ideas?
Thanks,
.
- Follow-Ups:
- Re: executing an sql statement in perl
- From: xhoster
- Re: executing an sql statement in perl
- From: Mumia W.
- Re: executing an sql statement in perl
- From: Thomas J.
- Re: executing an sql statement in perl
- From: Paul Lalli
- Re: executing an sql statement in perl
- From: Tad McClellan
- Re: executing an sql statement in perl
- Prev by Date: Re: Passing variables into another script
- Next by Date: Re: Passing variables into another script
- Previous by thread: Passing variables into another script
- Next by thread: Re: executing an sql statement in perl
- Index(es):
Relevant Pages
|