如何在MySQL中使用LIKE条件对表进行分区 [英] How to Partitioning a table using a LIKE criteria in Mysql
本文介绍了如何在MySQL中使用LIKE条件对表进行分区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个大表,用于按varchar(200)类型的字段的值进行分区.我已经阅读了这个问题,但是因为我不能使用该字段的大小此解决方案.
我的问题是:我可以使用Like标准,例如LIKE'b%'或LIKE'o%'等吗?
如果没有,我该如何解决?
I've a large table to partition by value of a field of varchar(200) type. I have already read this question but because the size of the field I cannot use this solution.
My question is: Can I use a Like criteria as LIKE 'b%' or LIKE 'o%' and so on?
If not, How can I solve this?
在此先感谢,
安东尼奥
Thanks in advance,
Antonio
推荐答案
您最好将范围指定为
less than ('c')
它简短易读.
这篇关于如何在MySQL中使用LIKE条件对表进行分区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文