dongzhou1865 2014-12-05 04:43 采纳率: 0%
浏览 28
已采纳

通过transaction_code显示数据库组中的数据

In my database I create table name orders where the structure is transaction_code, date, customer_name, product_description, quantity, total_quantity all field have data.

In my previous activity I use while loop to display data from the table and it works ok, in this situation i would like to group all rows have same transaction_code

image below show my database structure with data

enter image description here

  • 写回答

2条回答 默认 最新

  • duanrongshi1544 2014-12-05 05:18
    关注
    select * from orders group by transaction_code 
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?