MySQL函数 - substring

it2022-05-05  149

比如一个字符串的存储为 qa,we,er,rt 我们要取这个字符串中的qa ,使用一个函数即可达到目的:

select substring_index('qa,we,er,rt',',',1);

转载于:https://www.cnblogs.com/buro79xxd/archive/2009/10/09/1682550.html


最新回复(0)