我有這個麻煩,我只是需要一點點幫助的Sql從項目組合表使包
我有2個表
temp_id uoc description
305202 AYM HtSeats
305202 BCM Leather
305202 BJB Navigation
305202 BLA PwrSeat
276722 8 Pwr Driver Seat
276722 43 Dual Factory Air
276722 9 w/o Power Windows/Locks
276722 ADM AlloyWhl
276722 AMM Cruise
276722 ATP BackupCam
276722 BJB Navigation
276722 BKM PwrLks
276722 BLA PwrSeat
276722 BMA PwrWind
276722 BNP RearAir
temp_id bbra1 bbra2 bbra3
305202 AYM BLA
305202 BCM BLA AYM
276722 ADM ATP
276722 BKM BNP BMA
,我需要把它們結合起來,使這個一個
temp_id uoc description
305202 AYM/BLA HtSeats/PwrSeat
305202 BCM/BLA/AYM Leather/PwrSeat/HtSeats
276722 ADM/ATP AlloyWhl/BackupCam
276722 BKM/BNP/BMA PwrLks/RearAir/PwrWind
任何幫助將是不錯謝謝
第一個表'temp_id uoc description'中是否有2或3個字段? – Math
您正在使用哪種RDBMS? SQL Server,MySQL等? –
3字段temp_id uoc描述 – user2615302