【发布时间】:2014-09-03 06:26:17
【问题描述】:
它在 firebird + c# 应用程序中。 我有这样的表:
TableA:
30RTabc1 someothervalue1 someothervalue2
30RTabc2 someothervalue3 someothervalue4
30RTabc1 someothervalue5 someothervalue6
30RTabc4 someothervalue7 someothervalue8
30RTabc1 someothervalue9 someothervalue10
TableB:
abc1 someothervalue1 someothervalue2
abc2 someothervalue3 someothervalue4
abc3 someothervalue5 someothervalue6
所以在结果中,我将有联合 TableC,它将具有来自 TableA 的值,其中第一列包含来自 TableB 第一列的值,所以它看起来像这样:
加入TableA + TableB的结果,其中TableA的column1字符串包含来自column1 TableB的字符串:
TableC:
30RTabc1 someothervalue1 someothervalue2
30RTabc2 someothervalue3 someothervalue4
30RTabc1 someothervalue5 someothervalue6
30RTabc1 someothervalue9 someothervalue10
最好的方法是什么,在firebird中一些sql查询或在应用程序中,c# - 循环? (key为column1,其他值可以完全不同,someothervalue只是示例,都可以随机)
【问题讨论】: