Thanks that worked, but why does that happen or maybe you could point to the proper 
thread so I read up on it.



----------------------------------------------------------------------------------------
Alain Lavigne - Data Administrator - ZAQ Interactive Solutions  E-Mail: 
[EMAIL PROTECTED]
297 St-Paul, West - Montreal, Quebec, Canada  - H2Y 2A5
Phone: 514-282-7073 ext: 371 - Fax: 514-282-8011


-----Original Message-----
From: Stephan Szabo [mailto:[EMAIL PROTECTED]]
Sent: July 16, 2002 14:52
To: Alain Lavigne
Cc: [EMAIL PROTECTED]
Subject: Re: [SQL] Need help on a troublesome query plan



On Tue, 16 Jul 2002, Alain Lavigne wrote:

>     Index "bld_x1_tb_bus_fact"
>      Column      |     Type
> -----------------+---------------
>  party_id        | bigint
>  bus_fact_typ_cd | character(10)
>  cont_id         | bigint
> btree
>
> With the following query on 50000 records:
>
> explain
> SELECT  bld_TB_BUS_FACT.BUS_FACT_ID AS id
> FROM    bld_TB_BUS_FACT
> WHERE   bld_TB_BUS_FACT.PARTY_ID=1320677
> AND     bld_TB_BUS_FACT.BUS_FACT_TYP_CD='MSG_SENT'
> AND     bld_TB_BUS_FACT.CONT_ID=786448
> AND     bld_TB_BUS_FACT.BUS_FACT_KYWRD ILIKE '%MT-ID=3407979%'
> AND     bld_TB_BUS_FACT.BUS_FACT_KYWRD ILIKE '%S-ID=1310723%'
> limit 1;

You'll need to either single quote or explicitly cast the
constants you're comparing to the bigint columns.


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly

Reply via email to