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

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -