FIREBIRD How to search only the first word of a field?
-
29-09-2019 - |
Question
I need to search only the first word of a field, ex:
My Table:
Name
---------------------
Henrique Melicio
José Eduardo da Silva
John McFly
My Query (results):
Name
-----------
Henrique
José
John
I need this query, but I do know to make SQL(Select?) statement. I tried using Substring, but I can't results.
Solution
How about using a split function before you pass in the query?
OTHER TIPS
May be you can take a look at regular expression
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow