Distribute the data in a column and update new column with data of split

Hi all

I'm working on Oracle 10 g. One of my table of the column stores the data, sampled below.

1722999340KK000200000
1444210829AB1001EX003
1444300000CD0148EX003
1722999340KL 000200000

I want to split the data in the report between the numbers (4; 6; 6; 5), as shown below and store it in different columns (A1 |) A2 | A3 | A4).
1444 | 210829 | AB1001 | EX003

Grateful if someone can give me some advice on how to achieve the same in the SQL database.

See you soon,.

novice
insert into split_tab  (A1,A2,A3,A4)
select substr(mycolumn,1,4), substr(mycolumn,5,6), substr(mycolumn,11,6), substr(mycolumn,17)
from myoriginaltab;

Max

Tags: Database

Similar Questions

  • Help! iPad 2 keeps coming out of the recovery mode. I have the latest version of itunes and updated my drivers.

    Help! iPad 2 keeps coming out of the recovery mode. I have the latest version of itunes and updated my drivers.

    Please take a genius appointment at an Apple Store, or select another authorized service provider.

  • Overview of the LR5 does not. Just updated iMac 2010 with ssd, 32 GB of ram and El captain and all imports new previews are gray. The images are there, can work on them and then they appear in the preview. All records older still work fine just new downlo

    Overview of the LR5 does not. Just updated iMac 2010 with ssd, 32 GB of ram and El captain and all imports new previews are gray. The images are there, can work on them and then they appear in the preview. All records older still work fine just new download does not work. Help, please!

    Please try and delete preview Cache.

    It is located in the same folder as the catalog in Lightroom. The name of the cache an extract ends with Previews.LRDATA and should be deleted. Not to be confused with *. LRCAT, which should not be deleted

    Default location should folder of the image.

    Kind regards

    ~ Mohit

  • I changed my phone number, but I can't update the 'ACCESSIBLE AT' number on my Apple ID account Please can someone explain how I can change the number of 'ACCESSIBLE AT', to update my account with my new number?   Thank you.

    I changed my phone number, but I can't update the 'ACCESSIBLE AT' number on my Apple ID account Please can someone explain how I can change the number of 'ACCESSIBLE AT', to update my account with my new number?

    Thank you.

    Try going into settings > FaceTime and turn off FaceTime. Then go to Messages and turn off iMessage.

    Turn off your phone and then new.

    RETURN to FaceTime and turn it on again, even with iMessage. He has to try to reactivate and your new number should appear (you can see this more down in the addresses to send & receive). You may need to log into your Apple ID for this operation.

  • The appliction accepts off frequently after update on Ipad3 with ISO 10 system.

    The appliction accepts off frequently after update on Ipad3 with ISO 10 system.

    Hi ayuba75781399,

    Acrobat Reader 16.09.21 is now available in the App Store.

    It should solve the frequent accidents that you have experienced.

    Please try it and let us know if it works for you.

    We apologize for the inconvenience.

  • Please add the option of power/link to download new pdfs with editing in the browser. I have a restaurant customer who is constantly updating their menu! Please help so that they can do it themselves!

    Please add the option of power/link to download new pdfs with editing in the browser. I have a restaurant customer who is constantly updating their menu! Please help so that they can do it themselves!

    Not the answer you want, but you could set up your quick customer with an ftp upload which would replace the existing pdf. I use Transmit and it would allow your customer to simply drag and drop on a folder.

  • I was change in 'Basic' in the 'Development' of Lightroom module, but in some sort the 'Basic' program has disappeared, and I find myself with more detailed editing tools that I don't want. How to get back the menu basic edition?

    Question: I've been change in 'Basic' in the 'Development' of Lightroom module, but in some sort the 'Basic' program has disappeared, and I find myself with more detailed editing tools that I don't want. How to get back the menu basic edition?

    Hello

    Click on the window inside Lightroom go to control panel > and select Basic from there.

    Thank you

  • I have already installed LR4 and a new disc with LR5 on it (never activated - have the serial number).  I don't have a drive on my computer to install from the disc.  How can I go on upgrade to LR5?

    I have already installed LR4 and a new disc with LR5 on it (never activated - have the serial number).  I don't have a drive on my computer to install from the disc.  How can I go on upgrade to LR5?

    Download the installation files and use the serial number, you need to activate.

    Lightroom - all versions

    Windows

    http://www.Adobe.com/support/downloads/product.jsp?product=113&platform=Windows

    Mac

    http://www.Adobe.com/support/downloads/product.jsp?product=113&platform=Macintosh

  • Cannot insert data with the PDO function [from: insert and update of the server in the same shape behaviors]

    I feel as if I'm fighting my way around a paper bag trying to insert a record.  I have recently converted from MySQL for PDP, which cannot be applied.  I'm not trying to write routines to update data and started with insert.  I tried the example in your PHP Solutions edition two, pp. 361-363, but I can't get a written account.

    It is a database, which I supported since the host server using phpMyAdmin.  I'm very well display the data on the site, so I guess that my login script is ok.  However, nothing I've tried has got a registered insert.  I tried to get back to the basics, and it still does not work.  This is my current code.  Something is wrong with my statement = $sql and I can't identify the problem.  Help, please!

    If (isset($_POST['insert'])) {}

    try {}

    create the SQL

    $sql = "INSERT INTO Homepage_text (enriched, h_date, h_seq, h_col, p_heading, p_text, h_hide) VALUES ($_POST ['enriched'], $_POST ['h_date'], $_POST ['h_seq'], $_POST ['h_col'], $_POST ['p_heading'], $_POST ['p_text'], $_POST ['h_hide']);"

    $sainttim-> execute ($sql);

    echo "new record successfully created ';

    }

    catch (PDOException ($e) exception

    {

    echo $sql. "< br / > '. $e-> getMessage();

    }

    }

    There are several things wrong with your code:

    • You use elements of an associative array within a double quoted string. Which will cause a parse error.
    • The values you are trying to insert in the database are for most (if not all) of the text fields. If you use a literal SQL query, text fields must be wrapped in quotes.
    • You try to use the method execute() with a literal SQL query. In AOP, execute() only works with a prepared statement. To run a literal SQL query, you must use the exec() method.
    • Passing the values in the array $_POST directly in the database without any sort of validation and without escaping quotes or other characters just asking for trouble.

    Follow the examples in the book, and use a prepared statement. To address all these issues quickly and easily.

  • BSOD in Windows 7 since the addition of Office 07 and updates Windows.

    How can I keep my computer from HP 1 month (Windows 7 Home Premium 64-bit) to close down and blue-screening at random times?  First thing I did when I got it was to slowly add programs I used on XP safely in the past.  I run Comcast w/McAfee and virus scan came negative.  However, just recently, I added Microsoft Office 2007 Ultimate Steal and updates the Microsoft appearing to all appropriate... I think that's when the trouble started.  Since then, I had random and/or closures crashes.  All the expert advice would be appreciated.  Thank you!!!

    Here's a common reason is given:

    Signature of the problem:
    Problem event name: BlueScreen
    OS version: 6.1.7600.2.0.0.768.3
    Locale ID: 1033

    More information about the problem:
    BCCode: 1a
    BCP1: 0000000000041790
    BCP2: FFFFFA80036FA470
    BCP3: 000000000000FFFF
    BCP4: 0000000000000000
    OS version: 6_1_7600
    Service Pack: 0_0
    Product: 768_1

    Files helping to describe the problem:
    C:\Windows\Minidump\123109-17035-01.dmp
    C:\Users\Paul & Laura\AppData\Local\Temp\WER-34491-0.sysdata.xml

    Bug Check 0x1A: MEMORY_MANAGEMENT
    A value of 0x0000001A MEMORY_MANAGEMENT bug control a. This indicates that an error occurred serious memory management.
    [Source: http://msdn.microsoft.com/en-gb/library/ms793604.aspx]

    This management mistake of memory is usually hardware related...
    [Source: http://aumha.org/a/stop.htm]

    Bug Check 0 x 50: PAGE_FAULT_IN_NONPAGED_AREA
    PAGE_FAULT_IN_NONPAGED_AREA bug control has a value of 0 x 00000050. This indicates that invalid system memory was referenced.
    [Source: http://msdn.microsoft.com/en-gb/library/ms793437.aspx]

    The requested data were not in memory. An address of invalid system memory was referenced. Defective memory (including main memory, L2 RAM, RAM video cache memory) or incompatible software (including remote control and antivirus software) [emphasis] may cause this stop message, as may other hardware issues (for example, incorrect SCSI termination or imperfect PCI card).
    [Source: http://aumha.org/a/stop.htm]

    I don't think that the problem has nothing to do with after installing Office Ultimate 2007.

     
    -Online if the computer came with a free trial preinstalled, Norton STOP HERE! and reply to this message.

    ===============

    It is possible that the application of McAfee is originally these STOP errors. Discover:

    1. download the Setup program for Microsoft Security Essentials * (MSE), save the download to your desktop: http://www.microsoft.com/security_essentials/default.aspx

    2 close all applications (anything with an icon on the taskbar) open and repeat steps #1 and #2 (only) of the solution triple McAfee & reboot.

     
    3. IMMEDIATELY to make sure that the Windows Firewall is on 100%!

    4. close all applications (anything with an icon on the taskbar) open then right click on the file that you saved in step #1 above and select run as administrator to install MSE; Follow all the instructions.

    5. after the restart, manually & repeatedly updated MSE until you get one invite 'no more updates'.

    6 test cycle.

    If the behavior persists, contact HP Support as soon as POSSIBLE under your warranty or Service contract.

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


    * I'm only using MSE as a Guinea pig here. You don't necessarily have to leave installed when we're done with our troubleshoointing but I wouldn't reinstall McAfee freebie just yet IIWY or if install any application of Norton.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Distribute the data output waveform of niScope Multi Fetch Cluster

    Now divide the data in a table 1 d of the clusters.  I use a PXI-5421 function generator and a PXI-5122 digitizer.  The output data of retruns NiScope Multifetch Cluster.vi of the waveform as a table 1 d of the cluster of 3 elements.  This table contains the information of channels 0 and 1.  I am trying to extract information from component waveform of each channel, so I can work on them a wave two re - assemble.  Can someone point me in the right direction?  I can't seem to find the right tool in the tools of painting or a cluster of.  Thank you.

    Jeff

    You just use a table of Index and a Unbundle by name or Unbundle.

  • I start the download for my CS5 and it comes back with an error that it can not install updates. and try later. I've tried about 6 times

    I start the download for cs5 and it comes back with an error that it can not install updates. and try later. I've tried about 6 times

    Hello Tracy,.

    How exactly you are trying to download and install updates?

    Is it a mac or windows?

    Manually download CS5 CS5 download products

    Download the updates manually CS5 for Windows here: https://www.adobe.com/support/downloads/product.jsp?product=39&platform=Windows

    Download the updates manually CS5 for Mac here: https://www.adobe.com/support/downloads/product.jsp?product=39&platform=Macintosh

    Concerning

    Jitendra

  • The research of a column with comma separated values with ora-text

    I use the Oracle 11 g 2 XE and Oracle Text to a web search engine.

    I've now created and text indexed a CLOB keywords column that contains words separated by spaces. This allowed me to expand the search, as Oracle Text returns the rows that have one or more keywords that are stored in this column. The contents of the column are visible to the user and serves to 'expand' the search. This does not work as expected.

    But now I need support several words or even sentences. With the current configuration, Oracle Text will only search for each keyword. How should I store the phrases and configure Oracle text so that it will search entire sentences (exact match is better, but the partial match is fine too)?

    Example of content column of two lines (values separated semicolon):
    "Hello, Hello; y at - it anyone out there? Nope; »
    "the just; basic facts; »
    I found a similar question: looking for a column with values separated by commas, except that I need a solution for Oracle 11 g with it's freetext search.

    Possible solutions:
    1st solution: I thought to redraw the DB as follows. I would like to make a new array of keywords (pkID NUMBER, nonUniqueID NUMBER, singlePhrase VARCHAR2 (100 BYTE)). And I want to change the column previous keyword to KeywordNonUniqueID, holding the ID (instead of a list of values). At the time of the research I had INNER JOIN with the new keyword table. The problem with this solution is that I will get several lines containing the same data except for the sentence. I guess this will destroy the ranking?

    2nd solution: is it possible to store sentences as an XML in the column key of origin and somehow say Oracle text to search for in the XML?

    3rd solution: separate individual phrases with spaces, but replace the spaces in sentences with the underscore or something (making a single word). If a phrase "why Hello there, Johnny!" is saved as "Why_hello_there, _Johnny!

    4th solution?:

    Note that, generally, there is a lot of sentences (less than 100), nor that they will be long (one sentence will be up to 5 words).

    Also note that I am currently using CONTAINS, and needs some of its operators, to my full-text searches.

    When you talk about "phrase", do you mean "a list of words separated by a comma other sentences?

    Isn't that the definition of "sentence" used by Oracle Text, where it simply means "a list of words in the order defined."

    If I understand your requirement, you want to have data such as:

    "aa bb cc dd".
    "aa ee dd ff.

    and give priority to the first on the second if someone looking for "dd".

    First, to conduct research in the comma separated list, you should look for in a section. You can either explicitly define sections of field such as
    AA bb cc dd
    Or you can use the PHRASE special section and set the sentence delimiters correctly. This is done with the attribute BASIC_LEXER punctuation

    Then you have the number you want to find only words where they are the only words in the section. That's the same problem, I address in the last post of this forum entry:
    Contains: match exactly

    Our solution will be substantially the same, some surrounding text with special markers, and then prioritize a phrase search with these special markers each side of the word.
    We need to do a treatment some additional, although, as we need to surround each "sentence" (in your terminology) with special markers. I did it by surrounding the text with "XX1"... Condition2"then by replacing every comma with"Condition2, XX1"as part of a MULTI_COLUMN_DATASTORE:

    drop table names;
    create table names (id number primary key, text varchar2(50));
    
    insert into names values( 1, 'just and kind, kind and loving' );
    insert into names values( 2, 'just, kind' );
    
    exec ctx_ddl.drop_preference  ( 'mylex' )
    exec ctx_ddl.create_preference( 'mylex', 'BASIC_LEXER' )
    exec ctx_ddl.set_attribute    ( 'mylex', 'PUNCTUATIONS', ',' )
    
    exec ctx_ddl.drop_preference  ( 'mcds' )
    exec ctx_ddl.create_preference( 'mcds',  'MULTI_COLUMN_DATASTORE' )
    exec ctx_ddl.set_attribute    ( 'mcds', 'COLUMNS', '''XX1 ''||replace(text, '','',''XX2, XX1'')||'' XX2''' )
    
    exec ctx_ddl.drop_preference  ( 'mywl' )
    exec ctx_ddl.create_preference( 'mywl', 'BASIC_WORDLIST' )
    exec ctx_ddl.set_attribute    ( 'mywl', 'SUBSTRING_INDEX', 'YES' )
    
    create index namesindex on names(text)
    indextype is ctxsys.context
    parameters( 'datastore mcds wordlist mywl' )
    /
    
    select score(1),id,text from names where contains( text, '
    
      
        
           XX1 kind XX2 
           kind
        
      
    
    ', 1) > 0
    order by score(1) desc
    /
    

    Output of this is:

      SCORE(1)        ID TEXT
    ---------- ---------- --------------------------------------------------
         52         2 just, kind
          2         1 just and kind, kind and loving
    
  • [8i &amp; 10g XE] How to compare a column with the text of a column with numbers

    This is probably a simple question, but I can't seem to find the answer. I tried variations on use to_number to_char and interpreters, all nothing will do.

    The real problem is that I have a table with a column of numbers in a database 8i (datatype = NUMBER (3)) and a column with the text (datatype = CHAR (3)), and I need to compare two values.

    This table has thousands of lines, but here's an example of the data in these two columns:
    TXT     CHR
    -----------
    001     1
    001     2
    002     2
    XXX     1
    003     3
    What I want to do is select the lines where the TXT and CHR VALUES do not match, then it would be (given my example):
    TXT     CHR
    -----------
    001     2
    XXX     1
    But, I'm having difficulties in comparing two columns, because they are not the same type of data.

    I tried to work on a simplified version of the problem in the 8i database both my 10g XE database:
    SELECT     *
    FROM     (
         SELECT     1.000               AS nbr
         ,     TO_CHAR(1.000,'000')     AS txt
         ,     CAST('001' AS CHAR(3))     AS chr
         FROM     dual
         )
    WHERE     txt = chr
    ;
    But this also returns any line, and it isn't even the "XXX" in the text column to treat in this example.

    Can someone help me understand what it is that I'm missing?

    Thank you!

    Hello

    user11033437 wrote:
    This is probably a simple question...

    Simple if you know the secret; maddening if you do not have.

    ... I tried to work on a simplified version of the problem in the 8i database both my 10g XE database:

    SELECT     *
    FROM     (
         SELECT     1.000               AS nbr
         ,     TO_CHAR(1.000,'000')     AS txt
         ,     CAST('001' AS CHAR(3))     AS chr
         FROM     dual
         )
    WHERE     txt = chr
    ;
    

    Try:

    TO_CHAR (1.000, 'FM000')
    

    By default, TO_CHAR leaves place the beginning of the string to a sign less, in which case he should ever one, TO_CHAR (1,000, '000') returns makes 4 characters, not 3. "FM" in the format said TO_CHAR do not add a space.

    If it does not, after the release of DUMP (txt) for the few lines that you can't match, so that we can see exactly what is in them.

  • A new to the community a year ago and always NEW. .

    I'm just confused by this provision of the community.  Never found an area that covered my desk with my number, nor a RESPONSE button to start another thread.

    LxCc

    See if this correction can help you:

    https://support.Microsoft.com/en-us/KB/947215

    In addition, it is better to download all drivers and updates to update directly from Dell download site and not use a third party service

    For more information, it is best to make this post in the Forum OS from Microsoft here:

    http://en.community.Dell.com/support-forums/software-OS/f/3524.aspx

    Bev.

Maybe you are looking for