| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Jonathan Mangin | Date: | January 4 2006 3:45pm |
| Subject: | Calendar table workaround | ||
| View as plain text | |||
I created a calendar table (date only), but all
where clauses include a uid. Is the following a
sane workaround to get a usable calendar table?
Anything else I can do?
my $sth = $dbh->prepare("
create table $temp_tbl
(date date,
uid varchar(14))
select date,
? as uid
from calendar
where date between ? and ?");
$sth->execute($uid, $bdate, $edate);
Thanks.
| Thread | ||
|---|---|---|
| • Calendar table workaround | Jonathan Mangin | 4 Jan |
| • Re: Calendar table workaround | Jonathan Mangin | 4 Jan |
| • Re: Calendar table workaround | Peter Brawley | 4 Jan |
| • SELECT DISTINCT uses index but is still slow | James Harvard | 4 Jan |
| • Inconsistent rows returned & examined in slow query log | James Harvard | 4 Jan |
| • RE: Calendar table workaround | Jay Paulson \(CE CEN\) | 4 Jan |
| • Re: Calendar table workaround | Jonathan Mangin | 4 Jan |
| • Re: SELECT DISTINCT uses index but is still slow | C.R.Vegelin | 5 Jan |
| • Re: SELECT DISTINCT uses index but is still slow | James Harvard | 5 Jan |
