SQL LIKE wildcard space character

前端 未结 9 1260
庸人自扰
庸人自扰 2020-12-19 04:28

let\'s say I have a string in which the words are separated by 1 or more spaces and I want to use that string in and SQL LIKE condition. How do I make my SQL and tell it to

9条回答
  •  天命终不由人
    2020-12-19 05:07

    Another way to match for one or more space would be to use []. It's done like this.

    LIKE '%[ ]%'
    

    This will match one or more spaces.

提交回复
热议问题