SQL 将属于同一个ID下的多行数据合并到一行在SQL中,可以使用合成函数作为总和来实现同一ID中许多数据货物的组合。具体说明如下:selectID,sum(isnull(data1 ,0))asda...