Reg: WM_CONCAT

Dear friends.

I face this error
ORA-06502: PL/SQL numeric or value error: character string buffer too small.
ORA-06512: at the ' WMSYS '.»» WM_CONCAT_IMPL ".



I keep files on my table and I want to display records in separate by commas.

output 101,101,102,103 there are a thousand documents in the column.
but when I used above function to concatenate its gave me error.

Please help me or give me another Solution on it how do I record with comma.

output 101,101,102,103 there are a thousand documents in the column.

See this example:

SQL> select deptno, rtrim (xmlagg (xmlforest (empno || ',' e)).extract ('//text()').getclobval (), ',') empnos
    from emp
group by deptno
/
    DEPTNO EMPNOS
---------- ----------------------------------------
        10 7782,7839,7934
        20 7369,7902,7876,7788,7566
        30 7499,7698,7654,7844,7900,7521           

3 rows selected.

Tags: Database

Similar Questions

  • Reg: WMSYS. WM_CONCAT or LISTAGG

    All,

    I'm trying to select column names that begin with "E" in my sql query projection area. For this I used USER_TAB_COLS with WMSYS. WM_CONCAT / LISTAGG too.

    I got the names of columns, with separator ", but could not inject it to the sql query. Please help me.

    SQL > SELECT WMSYS. WM_CONCAT (column_name)
    2 FROM user_tab_cols
    3 WHERE table_name = 'EMP '.
    4 AND column_name LIKE '% E ';

    WMSYS. WM_CONCAT (COLUMN_NAME)
    --------------------------------------------------------------------------------
    EMPNO, ENAME

    SQL > SELECT
    2. (SELECT WMSYS. WM_CONCAT (column_name)
    3 FROM user_tab_cols
    4 WHERE table_name = 'EMP '.
    5 AND COLUMN_NAME LIKE '% E '.
    (6) a
    7 FROM EMP where rownum < = 4;

    A
    --------------------------------------------------------------------------------
    EMPNO, ENAME
    ERROR:
    ORA-22922: non-existent LOB value

    -LISTAGG

    SQL > select (selection ListAgg (column_name, ',')
    2 IN THE GROUP (ORDER BY COLUMN_NAME DESC) AS CONCATV
    3 to user_tab_cols
    4. WHERE TABLE_NAME = 'EMP '.
    5 AND COLUMN_NAME LIKE '% E') a FROM EMP WHERE ROWNUM < = 3;

    A
    ----------------------------------------------------------------------------------------------------
    ENAME, EMPNO
    ENAME, EMPNO
    ENAME, EMPNO

    Thank you

    Here is an example of what you want to do:

    : c is of type cursor

    declare

    v varchar2 (4000);

    Start

    Select GROUP(ORDER BY COLUMN_NAME DESC) AS CONCATV ListAgg (column_name, ',')

    v

    of user_tab_cols

    WHERE TABLE_NAME = 'MYTABLE ';

    Open: c for 'select'. v. "from MYTABLE";

    end;

    ----

    Ramin Hashimzade

  • my PC Backup, Reg Clean Pro &amp; Research protect all piggyback on my Installer Firefox 26, for which I had to replace my Norton caveat regarding security issues.

    my PC Backup, Reg Clean Pro & Research protect ALL grafted onto my Installer Firefox 26, for which I had to replace my Norton caveat regarding security issues.

    Based on your research, I also substitute a Norton Security warning.

    I have windows 7 and complete Norton Security

    You downloaded firefox from the official site. Sometimes the software gets supplied with malware or adware, as in your case.
    In some cases, I recommend uninstalling (your software also mentioned), FF data directory deleting and then reinstalling FF of mozilla.org

  • Protector suite Reg Keys

    No one knows what the reg keys are created when you enable start of fingerprints? Or how to change the registry to reactivate without the Protector Suite software?

    And what is the reason for this?

  • ActiveX - Reg - led event reminder

    Hello

    I'm building a control for a Laser machine which based its controls in the ActiveX control technology. I had a program in c# that works, but I have because I wanted to change the settings and then connect it to another program Labview, I "translate".

    I start with a very simple operation:

    1. 'Start' ActiveX Server

    2. "load" a design for the laser.

    3. program of the "end".

    and then based on event (using the reg event reminder):

    If the "QueryStart" laser signal is activated by a switch, then "run" program.

    If the laser "starts", then light a led

    If laser 'ends', then light a led.

    I have problems to light a led by using the ref (LaserStartedLed) VI. I'm using as a model the Labview example: CWKnob to see a number from the button. But in this case, they use the numbers from the button, in my case are just Boolean, and I try to get data from common event.

    Can you help me with other ideas and corrections?

    Thanks in advance,


  • Return data of an event Reg to appellant VI reminder

    Hello

    I'm new to LabVIEW and approach it from a c# programming background. I have a DLL written in c#, connected library and a reminder of event Reg .NET listen to an event in the DLL. That part works. I can receive an integer of my DLL when the event fires - well.

    However, having this available only in VI integer that is referenced by the event Reg reminder doesn't help - I need to this integer passed back to appellant VI so that I can work with it. I tried a digital indicator to an exit in the Subvi of wiring, but it generates a conflict of function on the wire that connects the strictly typed event with Ref VI reminder. Please see the attached illustration.

    Help, please!

    These "yellow blocks" are all the range of events under "Dialogue and User Interface. They create the user event, generating the user event, destroy the event user and Unregister for events.

    EDIT: see also this thread for example code, you can download: http://forums.ni.com/t5/LabVIEW/How-to-interaction-with-Main-VI-from-Net-event-callback/m-p/2954265#...

  • Add the .reg file to Installer (book section)

    Hello!

    My app needs a few pieces of information placed in the Windows registry. When developing my application, I built myself the architecture of register that I need and it extracted in a .reg file. When I need to change some keys, I edit the .reg file, and then click Zoom to deply the update.

    I'm currently building an installer to distribute my application. Is it possible to import my .reg file / registry architecture in the section 'Register' from the Builder installer instead of rewriting everything in this interface?

    Hi Zyl7,

    It also allows .bat files that allow the script as the windows command prompt and so could be used to launch a number of other executable files.  There are a number of websites that can show you how to make that http://www.computerhope.com/batch.htm.  With this, you should be able to use the command to add the registry keys and then launch another executable file.  Here's a convenient way around the single executable problem.

    Kind regards

  • Of-Rube my code please Reg Expression maybe?

    Hi all!

    I will avoid solutions based text, but after looking at my code, I thought I can get a chance to learn a better way to do it.

    Problem:

    In LV 8.6 there is a problem when an individual 'node' in a VRML file result LV to crash if I try to open a file containing this node.

    Solution:

    Wirte code to check the file and remove the cruelest bad 'node' of trying to open it.

    IF this code works, but screams "This could we better using Reg expression?"

    I think the picture tells the story.

    NOTE: The case of non-visalbe just do the wires.

    THEN, share your thoughts please.

    Ben

    Even better than my original.  This is the beginning of the selection followed until the first byeverything '} ' (and line break).

    Kudos to ben64 for the tip.

  • HP Envy 15 Notebook PC TS: How to remove Trojan: Win32/Kovter.C reg for good

    Hello

    For more than a week I get alerts with Windows Defender that my laptop is infected with the Trojan: Win32/Kovter.C reg. Whenever I choose to remove it, but he continues to show the Trojan horse after each successive scan.

    My Internet Explorer seems to be damaged and non-functional (Chrome works great) and whenever I try to listen to music, the speaker transforms itself mute after a few seconds.

    How can I remove this Trojan horse apparently very dangerous for good? Is there a software to remove known spyware free that I can use. Or do I just restore my pc to an earlier date before the problem started?

    Thanks in advance

    ANI

    @anihokis

    Right here, you were able to remove them.

    Personally, I don't like Norton.

    I paid for the Premium version of Malwarebytes '$30' for 3 computers.

    The Premium version in time real protection and works very well.

    REO

  • Outside regs, reg 1239 compiler error

    I installed LV2009 and trying to open the version 8.6 vi.

    I get a message "compilation error. Report this problrm to Technical Support from National Instruments. off-regs - no release candidate has found, reg 1239! »

    32-bit client of Labview on Win 7 64 bit and Win Server 2008 64 bit give the same error.

    The attached code.

    Technical support NOR suggested installation LV 2009 service pack 1, which fixed the problem.

  • Flow: C:\hp\Hardware\browser\Default\IE.reg

    C:\hp\HPQWare\browser\Default\IE.reg

    This file has been reported as a virus by AV360

    is anyone knows if this is the case, or is this a false positive?

    Hello

    The path to the file is legitimate and must contain just some registry entries related to Internet Explorers home page layout.  You can still use the site on the following link to verify that the file is not malicious.

    https://www.VirusTotal.com/

    Kind regards

    DP - K

  • How good/bad is Reg Zooka?

    How good/bad is Reg Zooka and other registry cleaners? Do I still need to do anything in the registry? I read mixed reviews.

    There is NO SUCH THING as a 'good' registry cleaner - they are ALL, without exception, snake oil and dangerous.

  • Where can I get a copy of the BFE.reg file?

    Where can I get a copy of the BFE.reg file?

    Hello

    See this thread of TechNet.

    http://social.technet.Microsoft.com/forums/en/w7itprosecurity/thread/5366225a-46e7-4D6C-A389-8bd18a5c3aad

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Whenever I open my computer I get the following message is displayed as a pop-up on the desktop: C:\PROGRAMA~2 Kodak\EasyShareSetup\$Regis~1\Registration_7.2.20.2.stx

    Whenever I open my computer I get the following message is displayed as a pop-up on the desktop: C:\PROGRAMA~2 Kodak\EasyShareSetup\$Regis~1\Registration_7.2.20.2.stx I don't have Kodak on my computer and I typed Kodak in the search above Start section and checked my programs.

    How do I get this off of my computer?  Any suggestions appreciated woul

    I typed Kodak in search above to start section and checked my programs.

    Instead do with msinfo32.exe to open system information.   Then, in the Environment\Startup software do a find, category searches only for Kodak

    Even better would be to use AutoRuns (utility system available on TechNet).

    HTH

    Robert Aldwinckle
    ---

  • How to raise to open a .reg file

    I took some classes in the school of night dealing with security, and they speak using an account limited as possible and make use of the runas command each time as possible instead of registration as an administrator.

    Is it possible to run a .reg file to patch the registry without disconnection from my normal account and you connect as an administrator? Certainly, I could open the file and do it manually with regedit, but is there an alternative?

    I would like to know for all versions of windows, but XP, Vista and 7 should be enough, and I guess that what works in XP and 7 would work in the respective servers.

    Open a command prompt, use the REGEDIT /S REGFILE. Command REG (where REGFILE.) REG is your registry file).

Maybe you are looking for

  • 9300 Elite AIO TouchSmart: Touchsmart 9300 Elite AIO BIOS password

    Hello! I forgot the BIOS password on my Touchsmart 9300 Elite AIOCould you help me please?

  • MicroSD not used by Applications

    Why are there no Applications installed via the market using the MicroSD card as storage instead of the internal memory. I bought a 32 GB MicroSD card, so that I wouldn't have to worry about storage problems, but which proved to be a negative. All ap

  • IP ISP lease time does not count on E3000 router

    Hi all... I just installed an E3000 router and have updated the firmware on the support site. I noticed that when I look at the router status page, the term of the lease IP ISP seems to be stuck and does not count down. When I reboot the router time

  • How can I create a drop-down list in Dreamweaver CC 2015?

    I've already implemented the site essentially, but one of the points on my navigation bar should be changed to make a drop-down list. Any help would be very appreciated! Thank you very much! (It is my first time using DW or any other similar software

  • utility for documenting the ESXi server configuration?

    I know that we can use tools of command line following this kb KB VMware: backup and restore ESXi configuration using the vSphere command-line Interface and vSphere PowerCLI...to save and restore a configuration of the host.But what I'm looking for i