我有了這個表如下:Insert..Select,同列不同的值
part_id | feature_name | feature_value | feature_unit |
_____________________________________________________________
1 | Weight | 2 | kg |
1 | Color | Blue | |
1 | Description |description here| |
什麼,我想要做的是,這些地方在另一個(新)表
part_id | description | color | weight |
_______________________________________________
1 |description here| Blue | 2kg |
我想使用Insert..Select取決於feature_value列的值,但似乎無法爲此構建正確的查詢。任何想法?
哇,從來沒有想到這一點。 – sumpreto 2014-12-08 02:22:24