How to copy the data from the CLOB on Varchar2?

Hi all
I have a CLOB field with data, I want to copy all the ot its data to another field of varchar2 to the same table. How, please?
I think that I should use the Update statement, but how?

Note: Iam using DB Oracle 10g R2

You can just do a simple UPDATE, but if you have the adta in your CLOB which is too big to fit in your column VARCHAR2 column, you will not be able to get it all:

UPDATE my_table SET my_varchar2_column = SUBSTR(my_clob_column,1,[size of my_varchar2_column];

Tags: Database

Similar Questions

  • How to copy a driver from one computer to another not the same kind of computers

    IAM on a computer laptop windows 7 samsung and shot upward of information from the manufacturing on different computer hp pavilion dv6000 laptop now I need to know how to copy the or download the net hp Server pci 10/100tx network card to my I have a sandisk cruzer I need help please someone laptop computer hp hp laptop is a 32-bit windows vista help please

    Hello

    go to the HP link below

    http://WWW8.HP.com/us/en/support-drivers.html

  • How can I get data from each associated XMLnode in movieclips separated when you click a line in the combobox

    How can I get data from each associated XMLnode in movieclips separated when you click a line in the combobox?

    A sample of XML is like this:

    <>planter

    < Lauvtre >

    < Botanisk_navn > Acer campestre < / Botanisk_navn >

    < Norsk_navn > Naverlonn < / Norsk_navn >

    Gronn < Farge > < / fan >

    H4 < Herdighet > < / Herdighet >

    < Hoyde > 10-15 m < / Hoyde >

    < / Lauvtre >

    I have a combobox where it shows the botanical name and the Norwegian name. But the rest of the info in movieclips seem separate.

    Someone has an idea how to do this? Can I use the trace function maybe? Here is my AS3 code so far:

    var loader: URLLoader = new URLLoader();

    loader.addEventListener (Event.COMPLETE, onLoaded);

    list.addEventListener (Event.CHANGE, itemChange);

    function itemChange(e:Event):void

    {

    your. Text = list.selectedItem.data;

    TB. Text = list.selectedItem.label;

    }

    var xml;

    function onLoaded(e:Event):void

    {

    XML = new XML (e.target.data);

    var it: XMLList = xml. Planter.Lauvtre;

    for (var i: uint = 0; i < il.length (); i ++)

    {

    list.addItem ({data: it.}) Farge.Text ([i]) + "\n"+ it.» Herdighet.Text ([i]) + "\n" + it. Hoyde.text ([i]),

    label: it. Botanisk_navn. Text() [i] + "\n"+ it.» Norsk_navn. Text() [i]});

    }

    }

    Loader.Load (new URLRequest ("lauvtre.xml"));

    Thank you!

    Rheus.

    I don't know what you're trying to do.  but, if you want to fill one combobox with the botanical names and when one is chosen, the other use of logins:

    var loader: URLLoader = new URLLoader();

    loader.addEventListener (Event.COMPLETE, onLoaded);

    list.addEventListener (Event.CHANGE, itemChange);

    function itemChange(e:Event):void {}

    var selectedObj:Object = a [list.selectedIndex]

    trace (selectedObj ['fan'], selectedObj ['Botanisk'], etc);

    }

    var xml;

    var a: Array = [];

    function onLoaded(e:Event):void {}

    XML = new XML (e.target.data);

    var it: XMLList = xml. Lauvtre;

    for (var i: uint = 0; i

    list.addItem({label:il[i].child('Botanisk_navn').toString()});)

    a [i] = {'Fan': it [i].child('Farge').toString (), 'Herdighet': it [i].child('Herdighet').toString (), "Hoyde": he [i].child('Hoyde').toString (), 'Botanisk':il[i].child('Botanisk_navn').toString(),'Norsk_navn':il[i].child('Norsk_navn').toString()};}

    }

    }

    Loader.Load (new URLRequest ("test.xml"));

  • How to copy the recovery on the new HARD drive partition, HARD drive failed?

    Hallo,

    I have a Compaq Mini netbook with Windows 7 Starter.

    The HARD drive has failed and it is not repairable. However, it seems that the recovery partition is OK.

    I want to buy a new HARD drive, install the driver on the netbook, and then use the tools/recovery partition to install windows 7 on a new PC.

    So, the question is simple: how to copy the recovery for the new HARD drive partition?

    Hello s91066.

    If your hard drive of your laptop doesn't have? If this is the case, what do you mean by the "recovery partition is ok? I doubt that this laptop has two hard disks, so if you are able to see this partition of your hard drive may still work.

    You will need a set of recovery disks to restore the partitions on the new drive. If you can start Windows, which you can probably not with a dead hard drive, you can follow these steps if you can get into Windows.

    If you are unable to boot into Windows, you need a set of disks. You can order it directly from HP. The number of the United States / Canada is 1-800-474-6836. If you are in another domain, you must visit HP's Support around the world to find contact information for your region.

    I hope that is useful; have a great weekend!

  • How to copy the parameter FDM (import format, mapping of dimension, the command table)

    Dear all,
    How to copy the parameter FDM (import format, mapping of dimension, table of control) of application to another application.
    I found that one dimension mapping can be imported. Is it possible to copy the FDM application quickly?

    Thank you for your help

    If you get a chance try the following script, it is so simple and easy to extract all the map as XML data and help to import via import script.

    ---------------
    Void MapExtractor()
    '------------------------------------------------------------------
    "Script custom upstream Internet link:
    '
    "Created by: SatyaK"
    "Creation date: 08/12/09.
    '
    ' Object: this Script will produce a file of account mapping for
    "the current location.
    '
    '------------------------------------------------------------------

    'Run the export '.
    strFilePath = API. IntBlockMgr.InterfaceMgr.fExportMapToXML ("File Path", PPOVPeriod)

    End Sub

    -------------

  • How to copy the numbers in a cell to another cell and gets their total

    500.40

    192932.90

    231838 * 90

    290414 * 15

    222312 * 15

    222314 * 5

    141722 * 20

    Hello, can I ask how to copy the numbers after the period/asterisk to another cell and then add up all the numbers copied without having to type them.thank you

    Hi mirijin,

    Break the problem into small steps:

    Step 1. All separators (periods and asterisks) convert the asterisks.

    Formula in B2 (fill down)

    = SUBSTITUTE(A2,".","*")

    Step 2. Find the position of an asterisk in each cell.

    Formula in C2 (fill down)

    = FIND("*",B2)

    Step 3. Extract everything to the right of the asterisk.

    Formula in D2 (fill down)

    = RIGHT (B2, LEN (B2) −C2)

    Step 4. Convert the text to numbers re using the VALUE function.

    Formula in E2 (fill down)

    VALUE = (D2)

    This table has a header row and footer of the line, so the SUM in E9 apply to all cells in the body.

    = SUM (E)

    You can combine the individual forms in a unique and complex formula, or simply to hide intermediate columns B, C and D:

    Kind regards

    Ian.

  • How to copy the attachment

    How to copy the attachment

    Save the attachment to disk, such as the desktop.  Then copy it to another location and you have a copy.

    Steve

  • How to copy the code snippet?

    Hi all, please help me. How to copy the code snippet? (screenshot)

    div.png

    If you want to avoid using drag-to-select your operating system function to select blocks of code starting and ending with a specific tag, you can do the following...

    1. click anywhere in the code in the tag/block to copy
    2. click on the button select the Parent tag in the toolbar display of Code on the left side of the display window of the Code (the icon with a pointer arrow inside sharp brackets)
    3. press Ctrl + C

    Repeated by clicking on the button will continue select parent tag higher following.

  • I transferred all my info to my new 6 s.  How to clear all data from old 4S?

    I transferred all my info to my new 6 s.  How to clear all data from old 4S?

    Follow the contours of the steps in this Apple Support page:

    What to do before you sell or give away your iPhone, iPad or iPod touch - Apple Support

  • How can I download data from key USB flash to a Windows 7 computer

    I need to transfer some files from my PC to my PC Windows 7 Windows XP using a USB flash key. I've used Windows Easy Transfer to move my files without problem and some programs but did not download some files. I downloaded these files on a USB flash and I can access the files, as long as the stick is pluged. How can I download data from the USB flash on my Windows 7 computer

    Hello

    The following video may help:

    http://www.YouTube.com/watch?v=hrMQh0Xkpvs

    or this article:

    http://www.swarthmore.edu/documents/administration/its/how%20To%20Use%20A%20USB%20Flash%20Drive.PDF

    and here:

    http://TECHTIPS.salon.com/use-USB-flash-drive-transfer-files-PC-Mac-2544.html

    (Mac here can be a PC).

    Good luck.

  • How to copy a file from one folder to another?

    Windows 7, my images: how to COPY a file from one folder to another?

    Right-click on the file and drag it to the other folder. Release the button on the right and click on copy here.

  • How do I export data from one day to backup disk.

    Hi all

    Here we have a requirement like, we need to download the data from one day to the external drive and we must compire the exported data and the data in the table.
    I googled and I have discovered that using expdp command we can export the table content, but my Question is how do I export data from one day. My table having 2 years of data and I need download the data of only one day.

    expdp scott/tiger@db10g tables = EMP, DEPT = TEST_DIR dumpfile = EMP_DEPT.dmp expdpEMP_DEPT.log = logfile directory

    Can someone tell me how to download data from one day to the table & compare data exported with the data in the table. (I know both exported and data of the table data will be the same that we are downloading data of the actual table, but for tests, I need to know how to compare).


    Thank you
    Sree

    However, I do not understand the scenario but here is a way to compare:
    (1) change the name of the table newly created in another name
    (2) import the exported file once again

    you will have the same data in both tables

  • How to copy a layer from one psd to another

    How to copy a layer from one psd to another

    Select... Select all, Ctrl + C to copy the contents to the Clipboard, and then in the other PSD image use Ctrl + V to paste the content in its own layer.

    Ken

  • How to copy the data from Palm Desktop on a PC running Windows 8.1

    If like me you still find the Palm Desktop data (addresses, calendar, notes, etc.) handy and use it long after throwing the combined capacity and 'sync', you can see this is useful.  I bought a new PC running Windows 8.1 and had problems with data transfer due to a problem as I understand it, which does not exist in Windows XP, Vista or 7 versions.  Here is a summary of a way to easily transfer data from these earlier versions if you have a USB flash drive (or Dropbox, Google Drive, whatever) very convenient:

    (1) Download Palm Desktop 6.2 or 6.2.2 to your new PC.  Give a user name exactly as it exists in the database from your old PC.  This name will serve as Office Automation to create a folder name of six letters (an abbreviated version of your name) to hold the data that Palm Desktop will turn upward.  Wait a few seconds for this to happen, and then close the application on your new desktop.

    (2) in your old PC you want to transfer data from, find the folder named "Palm OS Desktop" which should exist in 'Documents' under path of folder and subfolders 'Users' as > your subfolder name > Documents in Windows 7 (can also be Vista) or may be under "Documents and Setting" folder in Windows XP.

    (3) in this folder "Palm OS Desktop" search this subfolder of six letters of your name and select this whole subfolder and select 'Copy' or Ctrl-C

    (4) locate the same name of subfolder in your new PC (which will have data zero), delete and then 'paste' the subfolder you "copied" in the exact same location.  If you did it right, Viola!  Your new desktop PC should display all the transferred data, once you open the application again.

    Most of the same procedure works with PC Windows 8.1 (probably also Windows 8).  What I found different is that the subfolder of data created under "Palm OS Desktop} had 7 instead of 6 characters with a"0"(zero), added as the last character.  When finally, you copy and paste this subfolder in the new PC there so rename and add "0" for the Palm Desktop to locate these data.

    I hope this helps.

    Data in XP is located in C:\Program Files\Palm (or PalmOne) \ < your HotSync name truncated > \Backup.

    HotSync for Win8 has been available for quite a while now!  See the post at the beginning of this section called "64-bit Windows USB drivers for Palm Desktop" for instructions and driver downloads.

    Palm Desktop 4.x and 6.2.2 use different database formats - 6.2.2 went to .mdb as an extension.

    Best way to migrate data is to perform a HotSync on the new machine, or use the built-in in Palm Desktop Export/Import option.  Export the addresses and calendar files, and then copy those of the new machine.

    The import option to retrieve data.

    WyreNut

  • How to copy the data from the indicator table 1 d to the Clipboard

    Is it possible to copy data from table 1 d indicator to the Clipboard as a text and for more than one cell?

    I use LV8.6.

    Leszek

    Sorry, I wasn't sure if it was available in 8.6, apparently not.

    You could create an indicator of fine print and use 'picture to a worksheet string' to complete. Now, you can just cut & paste the text instead.

Maybe you are looking for