-
Goal: Use the LIKE operator in my Query
-
Steps: I tried using '% {{ searchInvItemCollection.value }} %' but it does not work
Here's what is happening when I use the '%%' (Everything after the ' goes green...)
Without it (the LIKE does not work)
Goal: Use the LIKE operator in my Query
Steps: I tried using '% {{ searchInvItemCollection.value }} %' but it does not work
Here's what is happening when I use the '%%' (Everything after the ' goes green...)
Without it (the LIKE does not work)
I have a similar construction in a number of my queries. Try using CONCAT after LIKE:
WHERE {{ !searchInvItemCollection.value }} OR "Inventory"."Barcode" LIKE CONCAT( '%', {{ searchInvItemCollection.value }}, '%' ) AND "Inventory"."DeliveryDate" IS null ORDER BY "ID" DESC
it trows an error
I needed to use this instead ~
WHERE ( {{ !searchInvItemCollection.value }} OR "Inventory"."BarCode" ~ {{ searchInvItemCollection.value }} )