建议你优化这个查询语句,2种方法选择1种
1. 建函数索引 substr(cardno,1,18)
2. 在cardno字段上建索引,查询条件改为:where cardno like '%?'