scala - How to do SQL "NOT LIKE" in Slick -
i'm quite new both scala , slick. "like" query easy make
query.filter(_.name "%kjelle%")
but i'm not successful trying "not like" query. couldn't find notlike operator first thought try
query.filter(_.name !like "%kjelle%")
or
query.filter(!(_.name "%kjelle%"))
but no success.
how can in slick?
you can try use filternot
:
query.filternot(_.name "%kjelle%")
Comments
Post a Comment