0

SQL HOW TO GET FIRST , MIDDLE AND LAST NAME USING CHARINDEX in sql server

what to split first middle and last name in sql server i have name like Tom dike Harry

31st Oct 2017, 5:24 AM
manoj kumar
manoj kumar - avatar
1 Odpowiedź
+ 2
@Manoj Kumar, first, why not use separate fields for first, middle, and last name? it would be easier to manage and search for individual field. Also what's with the ALL CAPS in the question title?. You might consider to use STRING_SPLIT function, but from the documentation I see that it's not all backward compatible. Following is the link to the documentation: https://docs.microsoft.com/en-us/sql/t-sql/functions/string-split-transact-sql
31st Oct 2017, 11:16 AM
Ipang