Reg: LONG Update

All,
I am trying to update a LONG column as like below, But i am unable to do it. Can any one please give me the solution. Image is attached.
How to perform an update against the LONG data type column.
SQL> SHOW USER
USER is "SCOTT"
SQL> CREATE TABLE LONG_TEST ( ID NUMBER, LONG_COL LONG);
Table created.
SQL> INSERT INTO LONG_TEST VALUES( 1,' THIS IS LONG TEST');
1 row created.
SQL> COMMIT;
Commit complete.
SQL> UPDATE LONG_TEST SET LONG_COL='APPENDING'||LONG_COL;
UPDATE LONG_TEST SET LONG_COL='APPENDING'||LONG_COL
ERROR at line 1:
ORA-00932: inconsistent datatypes: expected NUMBER got LONG
SQL> DESC LONG_TEST;
Name                                                  Null?    Type
ID                                                             NUMBER
LONG_COL                                                       LONG
SQL> UPDATE LONG_TEST SET LONG_COL='APPENDING';
1 row updated.
SQL>
Thanks

LONG data type is deprecated. Oracle recommends to use CLOB or BLOB data type accordingly. In your case CLOB would be the appropriate data type to use.
Here is an example using CLOB
SQL> create table a (no integer, val clob);
Table created.
SQL> insert into a (no, val) values (1, 'karthick');
1 row created.
SQL> select * from a;
        NO VAL
         1 karthick
SQL> update a set val = val || ' oracle' where no = 1;
1 row updated.
SQL> select * from a;
        NO VAL
         1 karthick oracle
SQL>
See how simple its to use CLOB.

Similar Messages

  • Ipod no longer updates...

    my nano no longer updates/is recognized by my itunes. i attemoted to update through the ipod updater, but it does not recognize that my ipod is plugged in. it is properly plugged in as it is charging, but it will not update. it also won't do any of the r's...and furthermore no matter how long it is plugged in, the do not disconnect situation doesn't go away. i love my ipod and i am filled with sadness at its current state. thanks...
    dell   Windows XP  

    hi lenore_phila!
    if it's just itunes that isn't recognising the ipod, try:
    iPod for Windows: Fast user switching in Windows XP is not supported
    iPod appears in Windows Explorer but does not appear in iTunes
    ... but if Windows Explorer isn't seeing it either, try:
    Strange iPod behavior when Windows confuses iPod with network drive
    Your Windows PC doesn't recognize iPod
    love, b

  • HT1688 Someone changed the settings on my iPhone so that I can no longer update my apps or download new apps. I don't have the icon on my phone anymore. Can someone please tell me how to get it back?

    Someone changed the settings on my iPhone so that I can no longer update or add apps. The icon no longer appears. Can someone please tell me how to add that back?

    I should have added that the iTunes app is not displayed on my phone in order for me to add the apps.

  • When I "like" a song via Ping in iTunes, it no longer updates in my recent activity - any ideas why, or how to fix?

    Done all the normal updates - iOS5, iTunes 10.5, etc.
    As of the middle of June, every time I "like" a song via Ping in iTunes, it no longer updates in my Recent Activity tab in Ping.  Any ideas why, or how I can resolve?

    I don't have a solution, but this is also happening to me.  I have contacted iTunes Support but they have been less than useful.  Hopefully someone will have a solution and post here.

  • I have iphone 4s with iO6. My problem is I can no longer update my apps since "cannot connect to itunes" always shows on my screen when i try to. Tried fixing by changing the dates, turning off location as suggested in some forums but both didn't work!

    I have iphone 4s with iO6. My problem is I can no longer update my apps since "cannot connect to itunes store" always shows on my screen when i try to. Tried fixing by changing the dates, turning off location as suggested in some forums but both didn't work!  Please help!! Thanks.

    You can not merge accounts.
    Apps are tied to the Apple ID used to download them, you can not transfer them.

  • Since I downloaded the new operating system to my iPod touch I can no longer update my Apps or download new ones.  My password is recognized but the download process is immediately interrupted when I touch update (all) or download.

    Since I downloaded the new operating system (6.1.3) to my iPod touch I can no longer update my Apps or download and new Apps.  My password is recognized but when touching the update (all) button or download, the screen immediately reverts to the earlier screen and no updating or downloading occurs.

    Try This...
    Close All Open Apps...  Sign Out of the Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430
    If no joy...
    Connect to iTunes on the computer you usually Sync with and “ Restore “...
    http://support.apple.com/kb/HT1414

  • I have iBooks 2.1 on ipad. I changed my password and can no longer update the app. If I delete the app and install the updated version, will I lose the books I have purchased?

    I have iBooks 2.1 on ipad. I changed my password and can no longer update the app. If I delete the app and install the updated version, will I lose the books I have purchased?

    Try logging out of your account on the iPad by tapping on your id in Settings > iTunes & App Stores and then log back in and see if you can then update the app.
    If you do delete the app then you should be able to re-download your ibook purchases via the Purchased tab in the ibookstore in the app. But in case some of them are no longer available in the store and/or you have PDFs or epubs in it, then you could first connect it to your computer's iTunes and do File > Transfer Purchases (File > Devices > Transfer Purchases on iTunes 11) which should copy them over to the Books part of your iTunes library so that you have your own copy of them and can sync them back (even though they aren't iTunes purchases it should also copy over any PDFs or epubs that you have in the iBooks app)

  • I have an older computer and can no longer update. After the latest Apple update I can no longer access my e-mail on my mac. I can view it on my iphone and on icloud. Is there a solution to this problem?

    I have an older computer and can no longer update. After the latest Apple update I can no longer access my e-mail on my mac. I can view it on my iphone and on icloud. Is there a solution to this problem?

    Apple changed MobileMe to iCloud and then restricted iCloud to 10.7 users only unfortunately
    If your machine is a 64 bit processor Intel Mac you can upgrade to 10.7 for $29, however a lot of your 10.5/10.6/Rosetta based software could cease to function, especially third party hardware drivers for printers, fax machines, all-in-ones, scanners etc.
    http://roaringapps.com/apps:table
    Also depending how old the machine is, if it can accept 4GB of RAM (preferred), older video card, may not run 10.7 very well or stable.
    My advice is to keep at 10.6.8, get a web based email service that's plaform/hardware neutral, forward your iPhone emails there. Gmail/Yahoo Mail for instance.
    When your ready for new hardware and all new software, then buy a new machine.
    If your going to go to 10.7 on your present hardware, I advise you clone 10.6.8 to a external drive first, that way you can c boot off the 10.6 disk erase the drive completely (necessary to remove hidden Lion Recovery Partition) and option boot off the 10.6.8 clone and reverse clone.
    http://www.bombich.com/get_ready_for_lion.html

  • My iPad mini is no longer updating since last iOS update

    My iPad mini is no longer updating through iTunes since the last iOS update.

    Thanks Texas Mac Man.  My iPad is running 7.0.6 and it was after that update my iPad was no longer syncing through iTunes on my laptop.  My iPhone, also on 7.0.6, has no issues.  Earlier this morning I tried again, hooking my iPad up to iTunes and left them alone for a couple of hours and it never progressed past "syncing notes."

  • I can no longer update apps on my iPhone or iPad1.  It keeps asking me to agree to new terms, which I do, then stops and asks again over and over. Please help. I do not want to update to a new iOS

    I can no longer update apps on my iPhone 4 or my iPad 1 because it keeps asking me over and over to agree to new terms, so I do that and it still does not work.  Just around and around in a circle.  I do not want to update software. I like what I have.

    Pay attention to the numerous posts on this tonight.....try again tomorrow.
    GB

  • I currently have Leopard, and there are no longer updates for it. So I must upgrade to either Snow Leopard or Mountain Lion. Without doing so I cannot update my itunes, and my ipod is no longer compatile with my mac. How can I buy the upgrade

    I currently have Leopard, and there are no longer updates for it. So I must upgrade to either Snow Leopard or Mountain Lion. Without doing so I cannot update my itunes, and my ipod is no longer compatile with my mac. How can I buy the upgrade, since I do not have access to the mac store as that comes with Snow Leopard? I went to Best Buy and they said neither Snow Leopard or Mountain Lion can be bought there.

    Start by checking if you can run Snow Leopard:
    Requirements for OS X 10.6 'Snow Leopard'
    http://support.apple.com/kb/SP575
    Whilst Apple have withdrawn Snow Leopard from their stores, you can still get it from Apple by calling 1-800-MY-APPLE (if you are in the USA) and they will supply the SL DVD for $20 for a single user, or $30 for a family pack that covers up to 5 Macs.  You can also purchase the code to use to download Lion from the same number (Lion requires an Intel-based Mac with a Core 2 Duo, i3, i5, i7 or Xeon processor and 2GB of RAM, running the latest version of Snow Leopard), or you can purchase Mountain Lion from the App Store - if you can run that:
    http://www.apple.com/osx/specs/
    If you are outside the US call your national Apple Helpline:
    http://support.apple.com/kb/HE57
    If you're in the UK, use this number: 0871 508 4400
    When you have installed it, run Software Update to download and install the latest updates for Snow Leopard.
    To use iCloud you have to upgrade all the way to Mountain Lion:
    http://support.apple.com/kb/HT4759

  • Can no longer update my apps :(

    Hi. I'm new here and well I had to change my apple Id. I had to change the the email I was using and the password I was using. Well every since I did that I can no longer update my older apps. I find It ridiculous that it wants me to use my old password and email but I can't. I don't know what to do. Help me please. What can I do so I can update them again. I'm so confused.

    - Apps are locked to the account that purchased them.
    - To update apps you have to sign into the account that purchased the apps. If you have apps that need updating purchased from more than one account you have to update them one at a time until the remaining apps were purchased from one account.
    It sounds like you created a new account. you can change the email for an account and not create a new account. See:
    I no longer have an email address that was also my Apple ID. Can I still use the email address as my Apple ID?
    Apple recommends you change your Apple ID to your current, working email address. This will not create another Apple ID, it will only change it to your working email address. See Changing the name you use for your Apple ID if you'd like more information.

  • Can no longer update one of my iWeb pages (all others are working properly)

    I have an iWebsite with several pages. One of these pages is no longer working correctly. The page that is causing problems contains a series of text boxes and hyperlinks (which allow people to download PDFs). I can no longer update the vast majority of this page, nor can I see where the different text boxes start or begin. (I am currently only able to change the title, not the body.)
    When I go online to look at the actual published site, I am able to download all of the desired PDFs, however I cannot highlight or copy any of the text written on the page (this is not the case for the other pages of the website).
    I have updated this page several times over the last few years and have never run into this problem. Does anyone have any suggestions as to what might be wrong and/or how I might remedy the situation?
    Thank you in advance!!! Your advice is much appreciated!

    +You mean you can't see the text or can't see the text box sides and drag points?+
    +Do a Select All and see what you see.+
    When I select all I am able to see the text box that houses the body of the page.
    +What happens if you were to click in the center of the page and hit the delete key (you can always do an Undo command)?+
    Nothing happens. I can only delete the entire page (using the select all approach).
    +What happens if you click on the center of the page and drag to one side or another?+
    Nothing happens when I do this. I can move this main text box by moving each side individually.
    +I can see the text in the page's html file and it is an image file: http://web.mac.com/naomieisenberger/san/NaomiEisenberger_SAN_Papers_files/shapeimage1.png. If you go to the page it's a very fine, 1 pixel, image at the very top of the page. You'll see the cursor change to a magnifying glass. At that time click and drag to the desktop. It won't look like you're dragging anything till you get to the desktop.+
    Yes, this is the problem. This space is acting as if (or rather has been) converted to a graphic. Each reference listed on that page has been entered separately over time. It seems like the last time this section was updated it was saved as an image/graphic. I am not even sure how this would have happened or how to undo this issue. Do you know or have any further suggestions?
    Is there a way to view the html code on iWeb. . . to just work in code?
    +So you have to somehow figure out how to get it back to plain text. Do you have iWeb's preferences set to display the text image indicator?+
    Yes, there is a small yellow symbol.
    +You may have to create a new page to replace this one.+
    Thank you so much for all of the great advice!

  • I can no longer update existing or download new apps onto my MacBook Pro of late?

    I can no longer update either existing; or download new apps any more on My MacBook Pro? This is a new thing, and seems to have coincided with getting my new iPhone 4S the week before last? If had the MacBook since Dec 2010, and this is the first time I've experienced this problem. The message is always the same: "We could not complete your request. There was an error in the App Store. Please try again later (null)" But every day for well over a week, the message never changes. At first I thought it was the fact that I had the same Username and Password for both app store accounts, so I changed the one Password, but that hasn't resolved the problem either. Does anyone have a fix for this bug?

    I should have added that the iTunes app is not displayed on my phone in order for me to add the apps.

  • I have changed my ID and I can no longer update my apps or see my purchases. I have changed my ID in the store settings.

    I have changed my ID and I can no longer update my apps or see my purchases. I have changed my ID in the store settings.

    I have been told by Apple security that the ID does not exist it is now associated with my new ID, they told me to call support there is a pending case but they can not seem to provide an answer. If I log in in with my original ID. It does not recogonise my passwords or any answers I give to the security questions Grrrrrr I wished I never changed my ID!!!

Maybe you are looking for

  • Items on icloud will not download

    Items on icloud will not download

  • Miro's power button stopped working

    Suddenly my phone's power button stopped working. I can't lock/unlock the phone nor turn it off :/ Tried to take a screen shot, to restart the device but nothing happened. I dropped the phone only once or twice before months, it hasn't been in touch

  • Can you merge 2 single-page PDFs into 1 single-page PDF?

    I'm not having luck adding text with line breaks to a pdf, as apparently the Text Box tool does not like line breaks. So I'm wondering if I can take a pdf with the text I want, which is a full paragraph and merge into another pdf of my company letter

  • Nikon D3 Raw Conversion difference between ACR4.4 and CaptureNX

    Digital Photography Review has just published an in depth review of the D3. In it they compare raw conversions by ACR 4.4, ViewNX 1.0.3 (Capture NX), and Capture One 4.0.1. The ViewNX conversion mirrors the camera's jpg standard; but there are signif

  • Lost pictures iPhoto

    Hi all wondering if anyone can help. Yesterday my Macbook crashed and i had to do a total re-install. Hence i lost all my pictures from iPhoto. Now when i lauch iPhoto i can see all my pictures sitting there as thumbnails but when i click on them to