SQL: parse the first, middle and last name from a fullname field

后端 未结 23 1676
粉色の甜心
粉色の甜心 2020-11-27 10:47

How do I parse the first, middle, and last name out of a fullname field with SQL?

I need to try to match up on names that are not a direct match on full name. I\'d

23条回答
  •  没有蜡笔的小新
    2020-11-27 11:22

    Like #1 said, it's not trivial. Hyphenated last names, initials, double names, inverse name sequence and a variety of other anomalies can ruin your carefully crafted function.

    You could use a 3rd party library (plug/disclaimer - I worked on this product):

    http://www.melissadata.com/nameobject/nameobject.htm

提交回复
热议问题