To find names containing exactly five characters, use “^”and “$”to match the beginning and end of the
name, and five instances of “.”in between:
mysql> SELECT * FROM pet WHERE name REGEXP '^.....$';

或者

SELECT * FROM pet WHERE name REGEXP '^.{5}$';

相关文章:

  • 2022-12-23
  • 2022-01-18
  • 2022-03-07
  • 2021-07-07
  • 2021-04-18
  • 2022-12-23
  • 2022-12-23
  • 2021-05-14
猜你喜欢
  • 2022-12-23
  • 2021-10-27
  • 2022-12-23
  • 2022-01-19
  • 2021-08-07
  • 2021-11-09
  • 2021-10-01
相关资源
相似解决方案