1
我想指望有相同的order_id表中的多少行refnumbers
數相同的order_id和輸出有多少SQL
所以應該輸出:
There's 5 rows with the order_id 123
There's 9 rows with the order_id 124
There's 18 rows with the order_id 125
There's 2 rows with the order_id 77
它的列order_is
,它應該在表中後refnumbers
我真的不知道如何做到這一點,沒有具體提及一個order_id,然後通過他們在PHP中做一個循環。
非常好的答案! – Karem