CLOB does not show correct output

Hello


PLSQL below works fine as expected.

1 declare
2 t clob.
3 cursor c1 is select e-mail from CBS;
4 start
5 because I looped c1
t: 6 = t | i.email;
7 end of loop;
8 dbms_output.put_line (t);
9 end;
10.
[email protected]@[email protected]

PL/SQL procedure successfully completed.


If I add; as a separator for each email, then it displays only the semicolon.

1 declare
2 t clob.
3 cursor c1 is select e-mail from CBS;
4 start
5 because I looped c1
t: 6 = t | i.email | « ; » ;
7 end of loop;
8 dbms_output.put_line (t);
9 end;
10.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

PL/SQL procedure successfully completed.


Why the output above shows not emails with semi colon separator?

Any help is appreciated.

Published by: user8904001 on December 29, 2011 15:07

I have to write this at least once a day here in the forums... LOOPS of CURSOR ARE OBSOLETE... they were there are OBSOLETE MORE THAN 10 YEARS.

Sorry to shout but why are we still see this kind of stuff?

Now to your question.

In what version work? This is important.

Because the loop construct itself is the wrong way to approach this problem.
http://www.morganslibrary.org/reference/analytic_functions.html
Search for the LISTAGG function.

Tags: Database

Similar Questions

  • My laptop does not shows correct date and time... and when scrolling a page it scrolls very slow

    Hello

    I'm having a problem with my laptop. It does not shows date and the correct time. I put it to update manually, and every time I restart or turn off my laptop and reopen it shows as in the year 2007. Please help me... And when I scroll a page, it will slow real lines showing a... As half page goes up. My touchpad is not working properly it's button are good work. I've updated with synaptic driver, but it displays error as there are two or more materials

    Hello

    -What is the limited issue with scrolling of Web pages or all Microsoft-related applications (Excel, Word, One notes, etc...)?
    -What version of Internet Explorer is installed on your computer?
    -You are aware of any changes made on the computer before this problem?
     
    Step 1: For the synchronization of the clock of your computer problem, I suggest to return the article mentioned below and check if the problem persists.

    Loss of the time in a computer settings might also be due to some problems in the system (Input Output) BIOS of a computer database. You can also check with your computer manufacturer to see if there is no updated BIOS for your computer model.
    Warning of the BIOS:

    BIOS change / semiconductor (CMOS) to complementary metal oxide settings can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the configuration of the BIOS/CMOS settings can be solved. Changes to settings are at your own risk.

     
    Step 2: For the problem with scrolling of Web pages, I suggest to see the link below and check if the problem persists.
    The problems with the mouse button or scroll the parameters
     
    Step 3: Run the Microsoft FIXIT from the link below and check if the problem persists.

    Difficulty of broken desktop shortcuts and common system maintenance tasks
     
    Hope this information helps.
  • headset Bluetooth does not show as output device

    I have associated my Creative WP - 350 headphones for the MacBook. When I go to system preferences sound of the headphones does not as an output. I disconnected and repaired several times. This headset works seamlessly with my Android phones. Any suggestions?

    Because I see no way to delete this, I will update I had to factory reset the headset to operate. A fix that Creative has suggested. It worked.

  • The VI call does not show correct Boolean value returned from Subvi

    I have a Subvi, which returns a Boolean to indicate whether the system is WoW64 or not. When I run this by herself or with a probe VI, I get a TRUE result (my OS is 64-bit Win8, and I am running 32-bit LV2015).  When the VI is called as a Subvi, and the output is wired to a Boolean value on the front of the caller, the value is FALSE, even if it is TRUE inside the Subvi.  The LV2014 code is attached below.  It happens in 2014 but not 2013.  Is there something to do with DLL calls made by the Subvi which is corrupting the Subvi call?


  • pl/sql package does not show any output... pls help

    -every thing ok FRO this program, but how to get out to
    ---------------------------------------------------------------
    create or replace PACKAGE is pkg_test
    procedure p_add (a NUMBER, b NUMBER);
    end;

    create or replace package body is pkg_test
    number of l_result;
    procedure p_add (number, b number) is
    Start
    l_result: = a + b;
    end;
    end pkg_test;


    --
    Set serveroutput on
    Start
    pkg_test.p_add (4.30).
    end;

    Try this...
    It will work...

    create or replace PACKAGE is pkg_test
    procedure p_add (a NUMBER, b NUMBER);
    end;

    create or replace package body is pkg_test
    number of l_result;
    procedure p_add (number, b number) is
    Start
    l_result: = a + b;
    dbms_output.put_line (l_result);
    end;
    end pkg_test;

    --
    Set serveroutput on
    Start
    pkg_test.p_add (4.30).
    end;

  • The NEC uf000x diskette device is showing to work correctly. However, it does not show in windows Explorer. I can't read any disks or even format.

    The NEC uf000x diskette device is showing to work correctly. However, it does not show in windows Explorer. I can't read any disks or even

    format. What is my next step

    Check Device Manager to see if it appears.  You may need to install a driver for it.  If so, you should be able to get from the NEC web site.

    Good luck.

  • Since Firefox updated to 23, Hotmail does not display correctly

    Firefox itself up-to-date version 23 and since Hotmail does not appear correctly. I tried in IE and Chrome, and that's fine. I tried troubleshooting suggested, but nothing has worked.

    You can try the basic steps like these in case of problems with web pages:

    Reload Web pages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    Clear the cache and cookies from Web sites that cause problems.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.
  • Signature "by the account" does not work correctly

    Features: iPhone 6 iOS available 9.2 41.1 GB

    I have configured and you can send from multiple e-mail accounts (6 including iCloud) on my iPhone.

    My problem: the signature "by the account" feature does not work correctly. I enable this feature, create distinct signatures, choose to send other than the default e-mail account. However, the default signature in the message, followed two copies of the signature on behalf of which I want to send the message below. I deleted and readded to each email account and of the signature, but find the same result.

    Having this problem as well, or very close.  I can't get the HTML signatures to work (IE, appear) when

    I sent mail from an account that has a.

    This question to a while back in older iOS and has been fixed, now it's back...

    I often crash parameters when you try to paste a HTML signature in place and when

    I have a y arrive, it does not show in the email project.  When I add a text character

    at the signing, he sometimes shows up.  Very erratic...

  • the RealPlayer download button does not show the download of jeuvideode using Windows XP and explorer8

    the RealPlayer download button does not show downloading a video using Windows XP and explorer8

    Hello lailaanis

    First of all exit Internet Explorer. If you want to enable the download button when you hover over a video in Internet Explorer 8 you must go to tools > Preferences > download and save. Then to fix your problem, first UNCHECK the checkbox enable Web download and record in the window right under download and recording options, click OK. Then the Real Player output.

    Now, open Real Player again, follow the steps as tools > Preferences > download and record and this time this BOX called Web download and registration. Click OK and real player output.

    Now open Internet Explorer and visit any favorite video link and the download box will now appear.

    You can also use other services like http://www.keepvid.com/ to download videos from sites of common videos easily in different quality formats which can be played in Real Player.

    Hope that answers your question.

    Concerning

    Zeeshan Ahmad

  • Sansa e260 MSC mode does not show my files

    I never have problems with my player sansa until today. I just updated the firmware and now MSC mode does not work correctly. None of my files on the Sansa e260 player appear, do just the default values. However, everything is there when I go through my sansa player, but he does not appear in the player. No clue as to how I can solve this problem, so that the files that I have in my sansa player appear in the disc again? Any help is appreciated, thanks!

    The music on the e200 series folder is "hidden". Maybe that is. Change the settings in Windows to "show the hidden files and folders" and see if that helps.

  • You plan repair install XP - Partition but does not show an installation of XP

    running XP Professional on computer dell laptop.  My hard drive is a Seagate Ultra ATA 100 GB.

    After getting a blue screen, I have tried a reboot.

    1. now the message I get is "a disk read error occurred" so I boot from the disc and did the following in the recovery console

    -Chckdsk/r/p gives me the following message "volume appears to contain one or more unrecoverable problems.

    -Fixmbr and fixboot executed successfully

    -Run the Seagate (Seatools) utility to check for problems and he found.

    -Re-booted from the disc and tried to re - install xp over xp of origin (not to lose data).  However, the installation screen does not show a partition with XP installed.  It shows a partition with 100 GB and 100 GB free.  I have the option to install xp on my C drive but I don't have the opportunity to do a "repair installation".

    My question is what happened to my xp installation?  and what are my options for recover my operating system without losing all my data?

    Hi five_betty,

    It seems that the hard drive is damaged. We recommend that you contact Seagate support team diagnose the hard disk and correct any mistakes or to replace.

    Check if you follow the right steps to make the repair install.
    See Method 2: Repair the installation of Windows XP by starting your computer from the Windows XP CD in this article

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • When I turn on the computer, it does not show my office. It comes up with a white screen

    Original title: bad start.

    On May 15, 2013, I was prompted to download 8 updates from Microsoft. Since then when I turn on the computer, it does not show my office. It comes with a white screen. The only way to see the desktop is at the stop 'wrong' to turn off the power to the computer. Then I reboot, it just asking if I want to boot up normally, I say Yes and all is well on the office. Seems related to downloads of May 15, 2013. Any ideas?

    Hello

    Method 1:

    I suggest you to select last known good Configuration in Windows Advanced options and check if it works.

    To do this:

    a. restart the computer and press the F8 key for about four to five times.

    b. you will see the that last known good Configuration in the Advanced Windows options.

    c. Select last known good Configuration and press enter.

    Method 2:

    See the article and check if that helps:

    What to do if Windows does not start correctly

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-to-do-if-Windows-wont-start-correctly

    For more protection, use System Restore backup and restore, which is designed to help save email, photos, documents and other personal files.

    Note: when checking your drive hard for errors, if bad sectors are found, it tries to repair this sector and if all the available data may be lost.

    Let us know if it helps.

  • My laptop does not show my webcam under imaging devices or anywhere

    Original title: my laptop does not show my webcam under imaging devices or anywhere.  I was download the softeware and drivers and I don't know what happened to the webcam

    My daughter deleted files and scanned the computer and now I don't have a webcam and the microphone does not work.  No idea what can happen?

    Hello
     
    What is the number and the model of the computer? Was the web works well before cam?

    Method 1
    Run the fix it
    Hardware devices do not work or are not detected in Windows
    http://support.Microsoft.com/mats/hardware_device_problems/en-us

    Method 2
    Launch the Device Manager and try to find the physical changes and check if the web cam shows.

     
    1. click on Start, in the search bar type Device Manager , and then press ENTER.
    2. in the Device Manager window, click the top of the page on search for the hardware changes.
    3. check if the issue is decided.
     
     
    Regarding the problem with the microphone.
    1. have you tried to plug the microphone into the other USB port?
    2 is that the problem is specific to the microphone? You are able to use the speakers?
    Set the default Microphone.
    Perform the task with the help of the steps to adjust the Microphone as default.
     
    (a) go to Start and click on Control Panel.
    (b) click Sound, and then a new window will open.
    (c) in the new window click on the "recording" tab and right-click in the window and click Show disabled devices.
    (d) now check if the Microphone is listed there and right-click on it and choose activate.
    (e) point out that Microphone and click "set as default".
     
    You can also check the thread below that had several possible steps to solve the issues related to the microphone:
    http://social.answers.Microsoft.com/forums/en-us/vistamedia/thread/e7b5fabf-fe6a-4ED4-99b1-48d01dd99762
    Response with more information to help you.
  • I'm scanning in legal size docs. with my printer/scan/fax. The application of fax scan in windows 7 does not show an option to paper size for legal-size paper.

    I have a new HP with Windows 7.  I'm scanning in legal size docs. with my printer/scan/fax.  The application of fax scan in windows 7 does not show an option to paper size for legal-size paper.  I could do this on my old XP computer.  Microsoft forgot add parameters of legal size in this application?

    Hello notnewbee,

    Thanks for posting on the Microsoft answers Forum.

    You do not give the model of your printer/scanner/fax machine so I can't direct you to the website of the manufacturer of specifc. However, I would
    you go to the website of the manufacturer of your printer and download the latest drivers for Windows 7. Sometimes, if you use a driver that is not intended for your operating system, then your device can operate and install, but some features may not work.

    If they do not have an updated driver, then try the compatibility mode for Windows XP and see if your printer will work correctly.
    The information below will show you how you can make older programs run on Windows 7 here.

    If please reply back and let us know if this helps solve your problem or if you still need help.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • My smart-net-total-care portal does not show inventory and Segments see other admins

    My smart-net-total-care portal does not show inventory and Segments see the other admins.

    Our "Managing Director" has installed a collector who submits an inventory of our company on the Smart-Net-Total-Care Portal.

    When I log in to see the information of the collector (https://tools.cisco.com) I do not see the inventory collector, I can only see its "manually downloaded CSV stock."

    I got rights to see the data by this 'Managing Director' and I waited for the weekend for the website reflect this - but my opinion has not updated.

    How can I get the web portal to show all our accounts inventory of the collection?

    npicard,

    Thanks for your help so far.  I am a Director of a company on behalf of Mark.  I have over 7 days, deleted his role (not his association) and then reactivated it after waiting 48 hours.  Mark has been able to see the results of the present.  Once he was able to reconnect that he had the same problems with not being able to select the correct and most recent inventory.

    It's one of the reasons why, in another post I think you are familiar with, I asked Cisco to remove previous inventories to not exactly cause this type of confusion that we are trying to transfer this system to our operations department, whose brand is a key member.  Things do not go well.  Please let me know the status of the present and speed if possible.

Maybe you are looking for

  • My Apple TV won't download apps suggestions?

    Apple TV will not download applications, how to fix? App appears on the home screen, but is a gray box that says waiting

  • Satellite P100 - 347 (PSPA6E) - need Display Driver Update

    Hi all Display drivers on the driver download page has not been updated in ages,and I want to upgrade to the latest nVidia drivers. When I try and install drivers from www.nvidia.com, they keep referring me to Toshiba, however,but the pilot, we have

  • My Mac becomes hot. Also, my battery lasts only 3-4 hours.

    Why my charger and my MacBook Pro heat and why my battery lasts only a 3-4 hours?

  • All new Satellite Pro L300D crashes all the time

    Hello I'm a little base when it comes to laptops.I just bought this new L300D to ebuyer I started and I have an anti-virus etc. But without apparent reason, the computer crashes.The only way out is pressed the switch out. Everything is frozen. It wil

  • Why my password field auto?

    I posted this a few weeks back with no answer. Try again. When the awakening of my Mac, it auto-remplit with a password that I don't see (obviously).  When I click on->, the password is incorrect, and he just "wiggles". When I highlight the bad pre f