FIREBIRD How to search only the first word of a field?
-
29-09-2019 - |
Pergunta
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.
Solução
How about using a split function before you pass in the query?
Outras dicas
May be you can take a look at regular expression
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow