我希望表1中的数据能够像2000年MS接入表所示。
| contact_id | name | contact_type |
| 297 | Primary Properties Corporation | Supplier |
| 297 | Primary Properties Corporation | Prospect |
| 297 | Primary Properties Corporation | Customer |
| 298 | San Miguel Corporation | Prospect |
| 301 | Sulpicio Lines | Supplier |
我要回来:
| contact_id | name | contact_type
| 297 | Primary Properties Corporation | Supplier, Prospect, Customer |
| 298 | San Miguel Corporation | Prospect |
| 301 | Sulpicio Lines | Supplier |
我采用某种方式,例如使用组群、xml_path in sql,但它在接触烟.方面不做工作。
请就此向我提供指导。