这个select语句该怎么写好呢?

chenhouquan 2008-07-30 12:14:31
select avg(time) from (select * from record where type=0) where tip>978534912 and tip<978550783
我现在是想从第一个select搜到的结果中统计出time的平均值。
以上这个select语句是错误的,但应该能表达我想要的意思。
请问我该怎么写呢?望高手指点。
...全文
56 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
sunday_bj 2008-07-30
  • 打赏
  • 举报
回复
select avg(time) from (select * from record where type=0) as tmp where tip>978534912 and tip <978550783

56,687

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧