SELECT substring_index( wantclass, ' ', 1 ) AS wclass FROM bd_resume WHERE user_id =42
wantclass为要截取字符串对应的字段名,
' '为要以什么为截取字符的关键字符
1为关键字符出现的位置