![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Description ---------+------------------------+------------------------------+------------- |
|
thedate | date | not null subject | character varying(300) | lines | integer | not null default 0 read | character(1) | not null default |
|
author | integer | not null default 0 Indexes: |
#2
| |||
| |||
|
|
two almost identical queries: one searches for read in ('N','n') and the other searches for read in ('Y','y'). the (explain) SQL statement says that one uses the index on the (read) field and the other does a sequential table scan. Why!!!???? |
#3
| |||
| |||
|
|
two almost identical queries: one searches for read in ('N','n') and the other searches for read in ('Y','y'). the (explain) SQL statement says that one uses the index on the (read) field and the other does a sequential table scan. Why!!!???? I can think of no logical reason for this behavior. |

![]() |
| Thread Tools | |
| Display Modes | |
| |