Sql not deleting spaces

hi i have the folllowing sql trying to delete spaces,but it does not delete what happen is it show that 2 rows have been updated but when i go to the table i still find extra spaces because when i run again the same sql it still show that 2 rows have been updated
UPDATE CFG_OFFICE
   SET OFFICECODE  = TRIM (OFFICECODE);  
I did commit after updateEdited by: adf009 on 2013/01/29 10:16 AM

Hi,
Have you commited the transaction after update.
For example.
SQL> select * from test;
     EMPNO EMPTYPE                  SALARY JDATE         DEPTNO
         6 back office                2000 24-DEC-12         99
         1 HR                        10000 01-JAN-12         10
         2 Admin                     10000 01-DEC-11         20
         3 MARKETING                 12000 01-JAN-12         30
         4 FACILITY                  14000 12-FEB-12         40
         8 IT                        12000 10-JUN-10         80
         5 ADMIN                     11111 23-JAN-13         50
         9 Finance                   10000 07-NOV-12         90
        10 "100HR"                    9000 07-NOV-12        100
9 rows selected.
SQL> update test set emptype=' back office' where empno=6;
1 row updated.
SQL> commit;
Commit complete.
SQL> select * from test;
     EMPNO EMPTYPE                  SALARY JDATE         DEPTNO
         6  back office               2000 24-DEC-12         99
         1 HR                        10000 01-JAN-12         10
         2 Admin                     10000 01-DEC-11         20
         3 MARKETING                 12000 01-JAN-12         30
         4 FACILITY                  14000 12-FEB-12         40
         8 IT                        12000 10-JUN-10         80
         5 ADMIN                     11111 23-JAN-13         50
         9 Finance                   10000 07-NOV-12         90
        10 "100HR"                    9000 07-NOV-12        100
9 rows selected.
SQL> update test set emptype=trim(emptype);
9 rows updated.
SQL> commit;
Commit complete.
SQL>
SQL> select * from test;
     EMPNO EMPTYPE                  SALARY JDATE         DEPTNO
         6 back office                2000 24-DEC-12         99
         1 HR                        10000 01-JAN-12         10
         2 Admin                     10000 01-DEC-11         20
         3 MARKETING                 12000 01-JAN-12         30
         4 FACILITY                  14000 12-FEB-12         40
         8 IT                        12000 10-JUN-10         80
         5 ADMIN                     11111 23-JAN-13         50
         9 Finance                   10000 07-NOV-12         90
        10 "100HR"                    9000 07-NOV-12        100
9 rows selected.
SQL>Edited by: Chanchal Wankhade on Jan 28, 2013 11:15 PM

Similar Messages

  • My Lacie external hard drive will not back up on Time Machine. Says there's not enough space. This has happened with every single external I've purchased. Thought TM was supposed to delete old backups??

    My Lacie External backed up on Time Machine after the first back up but now says there's not enough room. I thought TM deleted old back ups to save new versions. What am I doing wrong. This happens to me constantly. Every single external hard drive I've purchased for the MacBook Pro (5 of them) has not worked either initially or at the second back up. It either isn't formatted properly so I have to go to Genius bar to help me set up for the first back up, or after the first back up, it says there's not enough space and I have to go back to Genius Bar. Is there a way I can fix this on my own?

    I just purchased 2 external hardrives. a LaCie Minimus and a G Drive. Each 1 TB. The guy at Apple told me that would provide 2 good TM backups for me. My internal HD has 750 GB capacity, of which I'm using 700 GB. Perhaps the ratio is not great enough. I do wish they would have told me this before I purchased the two Bummmmer! I even had them format and get the first back-ups going because of issues I've had in the past. I also just bought a 750 GB for photos.
    So, I won't be able to buy another bigger external since I've just purchased 3. Ugh. Well, I'll just exclude some files and divide things up. Eventually, I just want my 20,000 iphotos on one of the 1TB externals, and a TM back-up on another so that iphoto will function once more. It really hates how many photos I have and is brutally punishing me for it.I seriously need to do some housecleaning!
    Thanks for the advice. Just moved from US to Australia last week and was hoping to upload a few photos and the domino effect has lead me to this. Just went to Genius Bar in Perth today and they told me how to reformat drive to transfer iphoto library over, but I got stuck at trying to back-up my TM.

  • I get error message: not enough space to download when I try to buy a tv series on Itunes. It tells me to delete photos or videos to make space, but I have no photos and videos. Help?

    I get error message: not enough space to download when I try to buy a tv series on Itunes. It tells me to delete photos or videos to make space, but I have no photos and videos. Help?

    I would guess that a TV series takes up a fair amount of storage capacity. It is just a standard message I think that may indicate that you are actually running low on storage space.
    If you go to Settings>General>About how many GBs are specified as being available?  If you are low on space maybe deleting some apps may help.

  • Why does the new operating system not delete the moved files from their original location - it seems like an enormous waste of space, time and effort to clean up every file once you've moved it

    Why does the new operating system not delete the moved files from their original locations - it seems like an enormous waste of space, time and effort to clean up every file once you've moved it - also, when transferring large amounts of files it becomes a very large problem remembering which files were transferred and which not.

    You're going to need to be more specific, as I'm not quite sure I understand what you're talking about.
    If you're referring to copying from an external hard drive or flash drive, and you want to actually move files rather than copy them, you can hold down the option key to force it to do a "move" rather than a "copy." This is not new behavior, though... the Mac OS has worked this way as long as I can recall (and I've been using it since 1984).
    If you're having a problem with trying to move files from one place to another on a single drive causing them to be copied instead, that is likely because of some permissions issue preventing you from actually being able to move them.

  • 1.)  How do I organized my photo album on my ipad?  2.)  How do I remove an album on my ipad?  3.)  i have taken over 1,000 photos on ipad, now it won't sync stuff to the ipad because it said there is not enough space.  I want to delete some past synced p

    1.)  How do I organized my photo album on my ipad?
    2.)  How do I remove an album on my ipad?
    3.)  i have taken over 1,000 photos on ipad, now it won't sync stuff to the ipad because it said there is not enough space.  I want to delete some past synced photos from the computer to create space, but I don't know how to find it on computer.  It sycned a portion of a file onto the ipad which is useless to me so I want to delete it all & start fresh.
    4.)  I was thinking about copying some of those photos over so it would show up as new data maybe then it would sync to my ipad as a new & competed album.  Or will this create more problem because it would only be creating more photos?
    5.)  By the way, I don't know how to use dropbox or anything like it, so I take photos of some files & web screen that I use regularly to always have access regardless of internet access.  That is why I have so many photos.  But I want to be able to separate & organized them by files, web screens, or topics.  I also want to be able to delete & update as needed.
    6.)  If needed I am willing to delete 4 G of downloaded app to create space.  Will this help the space issue?  Also could I just leave the downloaded app to my computer only & only sync to to ipad as needed, since I don't need app as regularly.  I NEED "photo" ALL of the TIME!  I am out in the field, instead of carrying stack & stack of papers, I carry ipad with photo of these daily needed papers!

    1, you can't at the moment, though with iOS 5 in the Autumn, from http://www.apple.com/ios/ios5/features.html#photos :
    Even organize your photos in albums — right on your device
    2, by removing it from you synced from and re-syncing. Only photos taken with the iPad, copied to it via the camera connection kit, or saved from emails/websites etc can be deleted directly on the iPad (either via the trashcan icon in the top right corner if viewing the photo in full screen, or via the icon of the box with the arrow coming out of it in thumbnail view)
    3, the location of the photos that you synced to the iPad should be listed on the iPad's Photos tab when connected to your computer's iTunes.
    4, you can copy the photos from your iPad to your computer : http://support.apple.com/kb/HT4083 . You should also be able to delete them from the iPad as part of the transfer process to your computer, and it's then your choice whether to add them to your sync photo list so as to copy them back to the iPad. Copying them to your computer would allow you to organise them into folders and therefore be able to sync them back into separate albums.
    5, I don't use Dropbox either. There are some third-party browser apps in the iTunes App Store that allow you to download pages so that you can view them when offline e.g. Atomic Web (the whole page is saved within Atomic Web, it doesn't place a photo into the Photos app)
    6, deleting content should help. If you remove an app from your iPad then you also remove the content that it's got on the iPad - so if you then decide to reinstall it back onto the iPad then you will need to manually add back any content that you want in it. None of the Apple built-in apps (including Photos) can be removed from the iPad

  • After accepting update to my time capsule, I can no longer complete a backup because there is not enough space.  I tried deleting old files, but it doesn't seem to work.  Any advice:

    My time capsule was updated through an apple download update on June 16, and now I cannot back up my computer.  The message is that there is not enough space.  I tried deleting my files, but it didn't help.  any suggestions?

    How much space is there according to airport utility?
    TM can be fussy.. Do a factory reset of the TC and give it a new name. Use short, no space and pure alphanumeric type names..
    And reset TM. See A4 here. http://pondini.org/TM/Troubleshooting.html
    Then set up TM again to the TC and see if TM will start .. the reset will not hurt the backup and TM can still find it on a renamed TC.

  • I am at capacity How can I free up space but not delete music

    My Ipad is at 55.4 gb used 24 gb in music alone. 2.7 gb available so can't do anything  Ipad shuts itself down and won't let me open mail, use facebook, safari.How can I free up space but not delete songs in library   

    Unless you are attempting to download a sizable file, 2.7 GB should be more than enough to continue fucntioning. Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps from the tray BEFORE doing the reset.

  • I was copying files to my time capsule when it crashed when it was almost finished. Now I am stuck with a light grey folder I can not delete. I would´t care if it wasn´t for the fact the folder is 1 TB size and takes up too much space. I ha

    I was copying files to my time capsule when it crashed when it was almost finished. Now I am stuck with a light grey folder I can not delete. I would´t care if it wasn´t for the fact the folder is 1 TB size and takes up too much space. I have tried turning on and of Hiding Files in Finder and what not with no success. So, how do I delete this folder. Remember, I am not extremely familiar with technical terms.

    I recommend you erase the TC.. it is the easiest and fastest solution.
    In Airport utility open the disk tab and select erase.. choose quick erase.. it will take less than 1min.
    Start again but copy files in small amounts.

  • SQL Loader deletes data, after reporting a file not found error

    I have several control files beginning:
    LOAD DATA
    INFILE <dataFile>
    REPLACE INTO TABLE <tableName>
    FIELDS TERMINATED BY '<separator>'
    When running SQL Loader, in the case of one particular control file, if the file referenced does not exist, SQL Loader first reports that the file could not be found, but then proceeds to delete all the data in the table in which the import was meant to take place. The corresponding log file reveals that the file could not be found, but also states that 0 records were loaded and 0 records were skipped.
    In the case of all other control files, if the file is not found, the log files simply report this exception but do not show any statisitcs about the number of records loaded/skipped nor does SQL Loader delete the data in any of the referenced tables. This is obviously the expected behaviour.
    Why is SQL Loader deleting the data referenced by one particular control file, even though this file does not exist and the corresponding log file has correctly picked up on this?

    in the ressource name box of your file model, when you push the search button ("...") do you see the file ?
    Cause the problem can occur when you write directly the path without selectionning the file with the assistant.
    Try this.
    I think too that that you can't see the data by right clicking and selectionning View Data ?
    Let me know the avancement...

  • I backup to an external hdd with Time Machine, when it ran out of space it did not delete old backups, now my internal hdd says its full when before it had heaps of space. I have searched for extra files but cant find any. Can anyone help, please.

    I backup to an external hdd with Time Machine, when it ran out of space it did not delete old backups, now my internal hdd says its full when before it had heaps of space. I have searched for extra files but cant find any. Can anyone help, please.

    First, empty the Trash if you haven't already done so. Then reboot. That will temporarily free up some space.
    To locate large files, you can use Spotlight as described here. That method may not find large folders that contain a lot of small files.
    You can also use a tool such as OmniDiskSweeper (ODS) to explore your volume and find out what's taking up the space. You can delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one.
    Proceed further only if the problem hasn't been solved.
    ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    Install ODS in the Applications folder as usual.
    Triple-click the line of text below to select it, then copy the selected text to the Clipboard (command-C):sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    I don't recommend that you make a habit of doing this. Don't delete anything while running ODS as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means.
    When you're done with ODS, quit it and also quit Terminal.

  • Error for 'not enough space' when downloading a video.  I can see that it's music but I'm deleting songs out of my itunes and it's not helping with the space.

    I'm trying to download vide'os to my iPad but I'm getting an error that there is 'not enough space'.  When I look at my space, it's mostly music.  I've deleted out albums from my itunes but it has not freed up any space.  How do I delete these albums?

    Music takes up very little space, movies use a lot of space.
    Settings, music
    Setting, usage
    Both these area will give you info but if the movies are bigger then these areas allow, you may not have enough room even with removing all the music.
    How big are these movies and how many?

  • Trying to upgrade to newest version of iPad software but not enough space on hard drive to backup the iPad. It is saying if I continue all content on iPad will be deleted! Can I get it back after uprade by just synching with itunes?

    Trying to upgrade iPad software to newest version. It downloads but stops while backing up and says not enough space on hard drive to back up if i continue all media on iPad will be lostor deleted.  Can I get it back after upgrade by just synching or can I set it to backup to an external drive?  Thanks for any help.  I only use the laptop for itunes now as it has such little space left.

    I would recommend deleting contents off your hard-drive to make space (how much is left..you should be having 15% free as a general practice) and backing up the phone prior to upgrading.

  • Time machine will not delete old backup when space is needed

    Time machine says there is not enough space to complete backup yet will not delete old backups

    Start with C4.
    Time Machine Troubleshooting

  • I cant update my software as it always prompted me ,your start up disk is full and not enough space, when i had done the deleting some of my documents and stuff that i dont need it.

    i cant update my software as it always prompted me ,your start up disk is full and not enough space, when i had done the deleting some of my documents and stuff that i dont need it.

    I use CCleaner from the AppStore to delete the 'useless' stuff. It's free and works great for me

  • I tried to import a video into iMovie. Its says their is not enough space on the destination disk. I deleted many projects, and events. Nothing changed. What files do I delete and how?

    I tried to import a video into iMovie. Its says their is not enough space on the destination disk. I deleted many projects, and events. Nothing changed. What files do I delete and how?

    Hard drive full or near full:
    You are going to have to delete, move or archive your data to regain hard drive space.
    Have you emptied your iMac's Trash icon in the Dock?
    If you use iPhoto, iPhoto has its own trash that needs to be emptied, also.
    If you use Apple Mail app, Apple Mail also has its own trash area that needs to be emptied, too!
    Other things you can do to gain space.
    Delete any old or no longer needed emails and/or archive older emails you want to save.
    Look through your Documents folder and delete any type of old useless type files like "Read Me" type files.
    Again, archive or delete any old documents you no longer use or immediately need.
    Uninstall apps that you no longer use. If the app has a dedicated uninstaller, use it to completely uninstall the app. If the app has no uninstaller, then just drag it to the OS X Trash icon  and empty the Trash.
    Download an app called OnyX for your version of OS X.
    When you install and launch it, let it do its thing initially, then go to the cleaning and maintenance tabs and run all of the processes in the tabs. Let OnyX clean out all web browser cache files, web browser histories, system cache files, delete old error log files.
    Typically, iTunes and iPhoto libraries are the biggest users of HD space.
    If you have any other large folders of personal data or projects, these should be moved, also, to the external hard drive and then either archived to disc and/or deleted off your internal hard drive.
    You may have to Purchase an external FireWire or Thunderbolt hard drive to move these files/data off of your internal drive to the external hard drive and deleted off of the internal hard drive.
    Good Luck!

Maybe you are looking for

  • Need help on: Automation of Daily Data Load

    Hi all, We need to start our Daily Data load from DAC by Manually. So right now my client has asked us to do Automation of Daily Data Load. Starting the Daily Data Load Manually(DAC) Process: First we have to check whether the ASCP Plans updated or n

  • Can someone please help me code scrollbars to scroll a movieclip?

    Hi guys, Thanks for the interest in my post... I've created a scrollbar with up and down buttons for a site in Flash 8 but the up button was behaving very oddly even though there were no syntax errors. Because of this I have decided to start again as

  • Getting "error -50" when trying to play Online Class DVD-Rom

    Hello everyone, So the way my online statistics class lecture works is a DVD-Rom gets popped in my comp, and it opens the browser as the DVD-Rom menu. Then I click a chapter and a quicktime movie/video player window is supposed to pop up and play my

  • Is iPad 3G infrastructure different than other 3Gs?

    Hi, Mobile service providers offer cheaper 3G packets with 3G mobile usb modems in Turkey as campaigns. I called their customer service and asked "may i get the sim out from usb 3G modem, crop it to make micro sim with scissors and use it on the iPad

  • Why does my computer's calculator widget double entries?

    Why does my computer's CALCULATOR widget double an entry? I can key a single number, like 2, but if I click on the same number I get 22. When I click on the Add button, it doubles the first or second entry so the answer is clearly too much. For examp