在内存中的表上运行SQL查询

时间:2013-04-22 11:04:20

标签: c# sql linq

我有2个表,我已使用SQL查询

加入
DataTable Table = Select FacilityIssueDetails.FacilityNo,LCPaymentDetails.BillNo, FacilityIssueDetails.FStatus,LCPaymentDetails.BankName , LCPaymentDetails.Supplier, FacilityIssueDetails.BaseAmount,FacilityIssueDetails.Currency, FacilityIssueDetails.FacilityAmountINR, LCPaymentDetails.PAmountINR , FacilityIssueDetails.LCAmountPaid, FacilityIssueDetails.LCAmountRemaining,FacilityIssueDetails.IssueDate, FacilityIssueDetails.ExpiryDate, LCPaymentDetails.LCNo 
                  from FacilityIssueDetails,LCPaymentDetails 
                  where FacilityIssueDetails.FacilityNo = LCPaymentDetails.LCNo

现在我想在存储在内存中的表上运行另一个SQL查询。

怎么做?这是一个选择查询。

请提前帮助,谢谢。

1 个答案:

答案 0 :(得分:1)

使用DataTable.Select方法。请注意,与SELECT相比,它的性能较慢。