0

SQL Like operator

Hi,

I need to use a SQL function with a Like operator. Do you know how to do that ?

Many thanks.

4 comments

  • Avatar
    Janice Janczyn Official comment

    Hi Rémi,

    w3schools.com is an excellent resource for technical information.  Their SQL material is at http://www.w3schools.com/sql/default.asp and their description of the LIKE syntax is at http://www.w3schools.com/sql/sql_like.asp.

    Hope this helps!

    Thanks,

            Janice

  • 0
    Avatar
    Rémi Bastien

    Hi Janice,

    Thank you for your answer. Actually, I know how to use this operator in a SQL function, but I didn't find it in Klipfolio.

    I solved my problem with CONTAINS().

  • 0
    Avatar
    Janice Janczyn

    Hi Rémi, my apologies, I misunderstood your question. Glad to hear you found the CONTAINS function. If you want a case-insensitive comparison, wrap the LOWER function around each parameter to convert them to lower case:

       CONTAINS( LOWER (haystack), LOWER(needle) )

    Happy klip-building!

    Janice

  • 0
    Avatar
    Matt Gabrielson

    Thanks for added the LOWER function reference. Saved me a ton of debugging. 

Please sign in to leave a comment.