例如,我有下表中的数据
表顺序
-----------------------------------------
id_order no_order order_date
-----------------------------------------
1 0000001 12-01-2013
2 0000002 15-01-2013
-----------------------------------------
表 item_order
--------------------------------------------------
id_item_order id_order order_name
--------------------------------------------------
1 2 Product 1
2 2 Product 2
3 2 Product 3
4 2 Product 4
--------------------------------------------------
然后我想显示来自数据库的数据加入如下
--------------------------------------------------
id_item_order order_name no_order
--------------------------------------------------
1 Product 1 0000002 A
2 Product 2 0000002 B
3 Product 3 0000002 C
4 Product 4 0000002 D
--------------------------------------------------
如何根据表序中item_order和id_order相关的数据量显示no_order后面的字符“A-n”?
请帮我。谢谢你