I need to know how substring_index can only return all rows matching exactly the number of delimiters. In this case .
For example, this query:
SELECT SUBSTRING_INDEX(ABC, '.', 4) FROM xxx
should be output only if the string exactly matches this (with 4 words):
aaa.bbb.ccc.ddd
The problem is that: this line is also shown.
aaa.bbb
source share