关于group by 在sql中的应用记录

上面讲的是goup by 配合聚合函数的用法 

比如   select order_id,count(1)  count  from   表名A  group by   order_id


还有一点记录一下

SELECT order_id,user_id FROM bieyang_guestbook t GROUP BY order_id,user_id

这样可以把表中重复的数据去掉

关于group by 在sql中的应用记录

相关文章:

  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
  • 2022-02-01
  • 2022-12-23
  • 2021-11-28
猜你喜欢
  • 2021-11-24
  • 2022-02-07
  • 2022-01-01
  • 2022-12-23
  • 2022-01-28
  • 2022-12-23
  • 2021-06-21
相关资源
相似解决方案