Dim cmd As New SQLCommand cmd.ConnectionName = "订单" Dim dt As DataTable cmd.CommandText = "SELECT DISTINCT 公司 as 客户,null as 供应商,null as 渠道,null as 送货方式,null as 单位,null as 收款方式,null as 费用类型,null as 订单名称 From {客户} union SELECT DISTINCT null as 客户,公司 as 供应商,null as 渠道,null as 送货方式,null as 单位,null as 收款方式,null as 费用类型,null as 订单名称 From {供应商} union SELECT DISTINCT null as 客户,null as 供应商,渠道,送货方式,单位,收款方式,费用类型,订单名称 From {列库}" dt = cmd.ExecuteReader()