mysql - Need a sql query to find all 3 part names with spaces in 'customer info' table -
my "customer info" table contains column 'name' full name of customer given (with space between parts). basically, need find customers 3 part name "king george v" or "duke of york" - is, has more first name , last name.
select * customerinfo length(custfullname) - length(replace(custfullname, ' ', '')) >2
this not perfect,it selects names empty spaces >2
Comments
Post a Comment