摘要:
1.求平均值:AVG() (1)用法求平均值:select AVG(列1) from table1;求大于平均值的列:select * from B where num > (select AVG(num) from B );2.计算行数:count()(1)可做如下用法 select count(... 阅读全文
posted @ 2014-11-27 16:34 周一要吃鸡腿 阅读(95) 评论(0) 推荐(0)
|
|
|
|
摘要:
1.求平均值:AVG() (1)用法求平均值:select AVG(列1) from table1;求大于平均值的列:select * from B where num > (select AVG(num) from B );2.计算行数:count()(1)可做如下用法 select count(... 阅读全文
posted @ 2014-11-27 16:34 周一要吃鸡腿 阅读(95) 评论(0) 推荐(0) |
|