使用sql语句获取平均值,使用sql语句获取数据总条数, not in 筛选语句的使用

1. 查询平均值语法 select avg(要计算的值) as 别名 from 表名 select 别名=avg(要计算的值) from 表名 2.获取数据总条数 select count(*) as 别名 from 表名 select 别名=count(*) from 表名 以下是举例: publ
posted @ 2024-06-13 17:56  龙卷风吹毁停车场  阅读(6)  评论(0编辑  收藏  举报