Matching partial words in two different columns

前端 未结 3 1405
陌清茗
陌清茗 2021-01-24 01:29

I am working on trying to weed out a certain customer from our database. I\'ve noticed a trend where people fill out their first name with the same name that is partial to how t

3条回答
  •  一向
    一向 (楼主)
    2021-01-24 01:54

    You can use LIKE operator:

    SELECT * FROM table WHERE business_name NOT LIKE CONCAT(first_name, '%')
    

    % stands for anything.

提交回复
热议问题