MySQL LIKE with range doesn't work

前端 未结 4 2066
余生分开走
余生分开走 2020-12-07 03:12

I\'ve got a database table mytable with a column name in Varchar format, and column date with Datetime values. I\'d like to count names with certa

4条回答
  •  我在风中等你
    2020-12-07 03:53

    You write:

    It seems that there's something wrong with range syntax here

    Indeed so. MySQL's LIKE operator (and SQL generally) does not support range notation, merely simple wildcards.

    Try MySQL's nonstandard RLIKE (a.k.a. REGEXP), for fuller-featured pattern matching.

提交回复
热议问题