私が持っている列名list
挿入多くの行
order
をという名前のテーブル
TABLE list
id | list | price | date
---------------------------------------
1 | Cigar | 5.00 | 2016-06-30
2 | Beer | 6.00 | 2016-06-30
3 | Whiskey | 20.00 | 2016-06-30
4 | Bacon | 10.00 | 2016-06-30
私はconfirmation
をという名前の別のテーブルにlist
を挿入したいのですがそれらのすべてが同じ列にある可能性がある方法で!しかし、それは動作しない多くの行に挿入されています!
私は
TABLE confirmation
id | theorder
--------------------------------
1 | Cigar, Beer, Whiskey, Bacon
は道がここ
TABLE confirmation
id | theorder
--------------
1 | Cigar,
2 | Beer,
3 | Whiskey,
4 | Bacon,
を見せてほしいな方法は、コードです:私はforeachのに働いています!
[こちら](http://stackoverflow.com/questions/36781495/php-mysql-consolidate-column-where-other-column-has-duplicates)も同様の質問です。 – Wizard