一:数据库

mysql把一字段拆分为多行

二:sql语句

select a.house_no as '房子',substring_index(substring_index(a.name,',',b.help_topic_id+1),',',-1) as '拥有者' 
from  aa a
join   mysql.help_topic b on b.help_topic_id < (length(a.name) - length(replace(a.name,',',''))+1);

三:查询结果

mysql把一字段拆分为多行

相关文章:

  • 2021-12-23
  • 2021-04-16
  • 2022-12-23
  • 2021-12-23
  • 2021-07-30
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
猜你喜欢
  • 2021-09-13
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
相关资源
相似解决方案