【发布时间】:2015-11-15 21:47:58
【问题描述】:
这可能是一个简单的问题,由于某种原因我看不到答案。这是示例数据:
+----+----------+---------------------------+
| ID | F_Key_ID | Desc_Text |
+----+----------+---------------------------+
| 1 | 15 | This is an example |
| 2 | 15 | that I wished worked |
| 3 | 15 | correctly |
| 4 | 21 | Unique entry |
| 5 | 18 | The Eagles are |
| 6 | 18 | the best football team. |
+----+----------+---------------------------+
请原谅菜鸟桌。这有多可怕?!
我想要的是一些 SQL,它采用每个 F_Key_ID 共有的文本并将其连接在一起,如下所示:
+----------+---------------------------------------------------+
| F_Key_ID | Concat_Text |
+----------+---------------------------------------------------+
| 15 | This is an example that I wished worked correctly |
| 21 | Unique entry |
| 18 | The Eagles are the best football team. |
+----------+---------------------------------------------------+
提前致谢!
【问题讨论】:
-
请用您的数据库标记您的问题。并且,您可以搜索“
聚合字符串连接”来获得您问题的答案。
标签: sql database oracle foreign-keys concatenation