Zum Hauptinhalt gehen

Filtering autocomplete box with sql where clause

Kommentare

2 Kommentare

  • Permanently deleted user

    yes - i'm an idiot and should've done more testing.

    this seems to be up and about.

    UPPER(BURN_STATUS) <> 'NOMINATED' AND UPPER(BURN_NAME) NOT LIKE '%DELETE%' AND UPPER(BURN_NAME) LIKE '%{0}%'

    filtering nicely!

    sorry for the complete waste of time reading this post...

     

    0
  • Permanently deleted user

    Hi Gareth,

    I'm using the following in an autocomplete Where clause:

    UPPER(LineCrossing.DESCRIPTION) Like UPPER('%{0}%') AND UPPER(EGPADMIN.LineCrossing.DESCRIPTION) Not Like '%ROAD% '

    This excludes all roads from the search and works. So it is possible. I'm guessing you would just do something like:

    UPPER(BRUN_NAME) Like UPPER('%{0}%') and UPPER(BRUN_NAME) not like '%DELETE%' and UPPER(BURN_STATUS) <> 'NOMINATED'

     

    Have you tried this already and it's not working?

    Cheers

    Neil

     

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.