分離字符串列表,並在MySQL 用新值替換同一名單我有我的TABLE_1表 TABLE_1(目前保存的結構)如何分離一個字符串,並重新構建它
code value
12_A ["A","B","C","D"]
12_B ["E","F","G","H"]
12_3 ["I","J","K","L"]
但每個代碼如下數據具有不同描述的不同值。像::
code value description
12_A A Apple
12_A B Ball
12_A C Cat
12_A D Dog
12_B E Eagle
12_B F Flag
. . .
. . .
. . .
我不得不從TABLE_1分隔值列表,並 需要在同一個表,即TABLE_1再次保存(在此結構)::
code value
12_A ["Apple","Ball","Cat","Dog"]
12_B ["Eagle","Flag",.......]
12_3 [......................]
字符串值是壞的分貝設計 – Jens