【问题标题】:fetching / Select data from sql server 2008 into data gridview从 sql server 2008 获取/选择数据到数据网格视图中
【发布时间】:2012-08-08 12:59:35
【问题描述】:

任何人都可以帮助我进行数据库查询,以将从 Sql Server 2008 获取/选择的数据显示到 c# 桌面应用程序中。我已附上所需的表格图和数据网格视图,请尽快回答。我需要在gridview中显示的是:

  1. 仓库编号
  2. 仓库名称
  3. 类型名称
  4. 计数名称
  5. 包包
  6. 每袋磅数
  7. 总磅数

图表:

【问题讨论】:

    标签: c# sql database visual-studio-2010


    【解决方案1】:

    我有答案了:

    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
    
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-08-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-10
    • 2014-11-02
    相关资源
    最近更新 更多