考虑我有一个table_1,如下所示,有4列如图所示..
id name products_id product_no
1 hi 1,2,3,4,5,6 1,2,5,6,9,13
2 hello 2,3,5,6 1,2,5,6,9,13
3 wow 5,6,9,10,13 1,2,5,6,9,13
4 total 1,2,5,6,9,13 1,2,5,6,9,13
现在我想只找到列products_id和列product_no之间的公共元素,并希望在另一个新列product_common中更新它,最终表格如下所示
id name products_id product_no product_common
1 hi 1,2,3,4,5,6 1,2,5,6,9,13 1,2,5,6
2 hello 2,3,5,6 1,2,5,6,9,13 2,5,6
3 wow 5,6,9,10,13 1,2,5,6,9,13 5,6,9,13
4 total 1,2,5,6,9,13 1,2,5,6,9,13 1,2,5,6,9,13
所以我在mysql中这样做吗?