题解 | #修复串列了的记录#
修复串列了的记录
https://www.nowcoder.com/practice/a5475ed3b5ab4de58e2ea426b4b2db76
select exam_id,substring_index(tag,',',1) '算法', substring_index(substring_index(tag,',',2),',',-1) difficulty, substring_index(tag,',',-1) duration from examination_info where tag like '%,%'
#知识点
substring_index(列名,分隔符,数字)
数字代表索引,如果是取得是1,2两个分割出来的字符