数据有三条,分别是: 能不能执行查询后拆成 5条数据: id name 1 {"id":"1","serviceKey": "0001"} 2 {"id":"2","serviceKey": "0002"} 1 {"id":"3","serviceKey": "0003"} 2 {"id":"4","serviceKey": "0004"} 2 {"id":"5","serviceKey": "0005"} 3 {"id":"6","serviceKey": "0006"} 麻烦用纯sql,可以用mysql自带的函数,谢谢 -----下面附上测试测试数据 INSERT INTO aaaa (name, id) VALUES('{"id":"1","serviceKey": "0001"}, {"id":"3","serviceKey": "0003"}', '1'); INSERT INTO 63ga.aaaa_2 (name, id) VALUES('{"id":"2","serviceKey": "0002"}, {"id":"4","serviceKey": "0004"}, {"id":"6","serviceKey": "0006"}', '2'); INSERT INTO 63ga.aaaa_2 (name, id) VALUES('{"id":"5","serviceKey": "0005"}', '3'); |