"firstname middlename lastname"
Unfortunately, when the middlename was not filled out, it contained two spaces between the first and last names. In addition to fixing the way that the the data is being updated, there's an easy fix for existing data.
update usersFor clarity, this finds and replaces two spaces with one space. Its easy to adapt to your specific situation and yes, its really that easy.
set fullname = replace(fullname,' ',' ')
where fullname like '% %'
No comments:
Post a Comment