The "in" operator can test whether a substring is present in a string:
"upon" in "stars upon thars" 1
To use this on a column, we could define a helper function. While we're at it, this can also lowercase the column we're searching for a case-insensitive match:
on like needle haystack do each v in (list "%l")format haystack needle in v end end
Allowing us to write a query like so:
ex:insert Date Entry with 20210412 "Once Upon A Time" 20220709 "There once were" 20230101 "stars upon thars" end select where like["upon" Entry] from ex # +----------+--------------------+ # | Date | Entry | # +----------+--------------------+ # | 20210412 | "Once Upon A Time" | # | 20230101 | "stars upon thars" | # +----------+--------------------+
How's that?