This works:
mysql> SELECT '123456789' REGEXP '.{3}';#1
mysql> SELECT '123456789' REGEXP '.{10}';#2
but not this:
mysql> SELECT * FROM mymodel WHERE some_text_field REGEXP '.{100}';#3
throwing exception:
ERROR 1139 (42000): Got error 'invalid repetition count(s)' from regexp
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…