Matching partial words in two different columns

前端 未结 3 1411
陌清茗
陌清茗 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:50

    this will do the trick,

    select * from TableName where lower(business_name) contains lower(first_name)


    use lower() just in case they have upper case letters. Hope it helps.

提交回复
热议问题