编辑:我改变了桌子。请参阅更新表:
在我的示例表中
post status
------------- -------------
post1 delivered
post2 undelivered
post3 delayed
post4 delivered
post5 undelivered
是否可以在单个查询中获得组合delivered
的数量和undelivered
+数量?delayed
像这样:
post status
------------- -------------
delivered 2
undelivered 3