如何用SQL语句在表中添加一行记录分别是上面各列的平均值(或最大最小值)

日期:2014-03-17 10:01:56 人气:1

如何用SQL语句在表中添加一行记录分别是上面各列的平均值(或最大最小值)

平均值: insert into table select AVG(列1),AVG(列2),.... from table 最大值: insert into table select MAX(列1),MAX(列2),.... from table 最小值: insert into table select MIN(列1),MIN(列2),.... from table
    A+
热门评论