문제

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.

도움이 되었습니까?

해결책

How about using a split function before you pass in the query?

다른 팁

May be you can take a look at regular expression

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top