任何人都可以帮助我进行数据库查询,以显示从 Sql Server 2008 中提取/选择的数据到 c# 桌面应用程序中。我附上了所需的表格图和数据 GridView ,请尽快答复。我需要在gridview中显示的是:
- 仓库编号
- 货仓名称
- 类型名称
- 伯爵姓名
- 包
- 每袋磅
- 总磅数
图表:
最佳答案
我有答案:
select
g.godown_id, g.godown_name, t.type_name, b.count, r.bags_received,
b.lb_per_bag, s.supplier_name
from
tbl_yarn_book b, tbl_godown g, tbl_godown_transaction gt,
tbl_yarn_receive r, tbl_yarn_supplier s, tbl_yarn_type t
where
gt.godown_id = g.godown_id
and gt.receive_id = r.receive_id
and r.book_id = b.book_id
and b.type_id = t.type_id
and b.supplier_id = s.supplier_id
关于c# - 从 sql server 2008 中获取/选择数据到数据 gridview,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11914974/