<small id='TfXju'></small><noframes id='TfXju'>

      <legend id='TfXju'><style id='TfXju'><dir id='TfXju'><q id='TfXju'></q></dir></style></legend>
    1. <tfoot id='TfXju'></tfoot>
    2. <i id='TfXju'><tr id='TfXju'><dt id='TfXju'><q id='TfXju'><span id='TfXju'><b id='TfXju'><form id='TfXju'><ins id='TfXju'></ins><ul id='TfXju'></ul><sub id='TfXju'></sub></form><legend id='TfXju'></legend><bdo id='TfXju'><pre id='TfXju'><center id='TfXju'></center></pre></bdo></b><th id='TfXju'></th></span></q></dt></tr></i><div id='TfXju'><tfoot id='TfXju'></tfoot><dl id='TfXju'><fieldset id='TfXju'></fieldset></dl></div>
        <bdo id='TfXju'></bdo><ul id='TfXju'></ul>

    3. 在 Oracle 中连接 SQL 查询的结果

      时间:2023-09-19

        <tbody id='7SVXX'></tbody>
    4. <i id='7SVXX'><tr id='7SVXX'><dt id='7SVXX'><q id='7SVXX'><span id='7SVXX'><b id='7SVXX'><form id='7SVXX'><ins id='7SVXX'></ins><ul id='7SVXX'></ul><sub id='7SVXX'></sub></form><legend id='7SVXX'></legend><bdo id='7SVXX'><pre id='7SVXX'><center id='7SVXX'></center></pre></bdo></b><th id='7SVXX'></th></span></q></dt></tr></i><div id='7SVXX'><tfoot id='7SVXX'></tfoot><dl id='7SVXX'><fieldset id='7SVXX'></fieldset></dl></div>
        • <bdo id='7SVXX'></bdo><ul id='7SVXX'></ul>
          1. <tfoot id='7SVXX'></tfoot>

            <small id='7SVXX'></small><noframes id='7SVXX'>

              <legend id='7SVXX'><style id='7SVXX'><dir id='7SVXX'><q id='7SVXX'></q></dir></style></legend>

                本文介绍了在 Oracle 中连接 SQL 查询的结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我在表格中有这样的数据

                I have data like this in a table

                NAME PRICE
                A    2
                B    3
                C    5
                D    9
                E    5
                

                我想在一行中显示所有值;例如:

                I want to display all the values in one row; for instance:

                A,2|B,3|C,5|D,9|E,5|
                

                在 Oracle 中,我将如何进行查询以提供这样的字符串?我不需要它被编程成什么东西;我只是想要一种方法让该行出现在结果中,以便我可以将其复制并粘贴到 Word 文档中.

                How would I go about making a query that will give me a string like this in Oracle? I don't need it to be programmed into something; I just want a way to get that line to appear in the results so I can copy it over and paste it in a word document.

                我的 Oracle 版本是 10.2.0.5.

                My Oracle version is 10.2.0.5.

                推荐答案

                -- Oracle 10g --

                -- Oracle 10g --

                SELECT deptno, WM_CONCAT(ename) AS employees
                  FROM   scott.emp
                GROUP BY deptno;
                
                Output:
                     10  CLARK,MILLER,KING
                     20  SMITH,FORD,ADAMS,SCOTT,JONES
                     30  ALLEN,JAMES,TURNER,BLAKE,MARTIN,WARD
                

                这篇关于在 Oracle 中连接 SQL 查询的结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:Oracle 相当于 MySQL INSERT IGNORE? 下一篇:如何在不复制数据的情况下创建 Oracle 表的副本?

                相关文章

              • <legend id='P1pQJ'><style id='P1pQJ'><dir id='P1pQJ'><q id='P1pQJ'></q></dir></style></legend>

                <tfoot id='P1pQJ'></tfoot>

                      <bdo id='P1pQJ'></bdo><ul id='P1pQJ'></ul>

                    <i id='P1pQJ'><tr id='P1pQJ'><dt id='P1pQJ'><q id='P1pQJ'><span id='P1pQJ'><b id='P1pQJ'><form id='P1pQJ'><ins id='P1pQJ'></ins><ul id='P1pQJ'></ul><sub id='P1pQJ'></sub></form><legend id='P1pQJ'></legend><bdo id='P1pQJ'><pre id='P1pQJ'><center id='P1pQJ'></center></pre></bdo></b><th id='P1pQJ'></th></span></q></dt></tr></i><div id='P1pQJ'><tfoot id='P1pQJ'></tfoot><dl id='P1pQJ'><fieldset id='P1pQJ'></fieldset></dl></div>
                  1. <small id='P1pQJ'></small><noframes id='P1pQJ'>