[英]fetching / Select data from sql server 2008 into data gridview
任何人都可以幫我進行數據庫查詢,以便將從Sql Server 2008中提取/選擇的數據顯示到c#Desktop應用程序中。 我附上了所需的表格圖和數據網格視圖請盡快回答。 我需要在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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.