Ask them help - string as columns separated by a comma

Hello
My requirement is

The following string is a comma-separated string

'389052,100207'

The string above is divided into 2 and appears as in 2 columns
SELECT substr ('389052,100207' ,1,6) , substr ('389052,100207' ,8,12) from dual     
Instead of writing above how can I achieve this

Thank you
SQL> with t as (select '389052,100207' str from dual)
  2  select  substr(str,1,instr(str,',') - 1) part1,
  3          substr(str,instr(str,',') + 1) part2
  4    from  t
  5  /

PART1  PART2
------ ------
389052 100207

Or:

SQL> with t as (select '389052,100207' str from dual)
  2  select  regexp_substr(str,'^[^,]+') part1,
  3          regexp_substr(str,'[^,]+$') part2
  4    from  t
  5  /

PART1  PART2
------ ------
389052 100207

SQL> 

SY.

Tags: Database

Similar Questions

  • Hoax call on notifications about a virus tries to hijack your computer and ask for help to remove the files?

    OT: security.

    Dear community,

    Did anyone out there contacted by "windows" say you they receive notifications about a virus tries to hijack your computer and ask for help to remove the files? Initially, it was an area code 855, but now the number is unavailable. I get a lot of calls.

    any help would be appreciated

    Thank you

    Hello

    It's a scam.

    Here are the tips that we regularly give the posters who receive these types of calls:

    We have all the errors and warnings in our Event Viewer

    Either these so-called "Microsoft" Tech companies want to sell you a worthless software, or remote access to your computer to try to steal your credit card and bank information and also achieve an identity theft on you.

    You are the only person who knows if you gave them remote access.

    If you gave them remote access and you do Internet banking, contact your bank, to explain, and change passwords.

    If you use your online credit card, cancel and get a new one issued to you.

    And the only way that willl you know that you are free to them is to backup your data and do a clean install of your operating system.

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    And Microsoft does not contact you unless YOU have made prior arrangements with them to do.

    There is an article in the link I'm you provide at the end of this one

    Read this Information from Microsoft:

    "Avoid scams to phone for tech support.

    http://www.Microsoft.com/security/online-privacy/avoid-phone-scams.aspx

    Don't be fooled of unsolicited calls. Don't provide personal information.

    Here are some of the organizations that cyber criminals claim to come:

    • Helpdesk Windows

    • Windows repair center

    • Microsoft technical support

    • Microsoft technical support

    • Windows Support Group Technical Department

    • Microsoft Research and Development Team (team of Microsoft R & D)

    See you soon.

  • Is it possible for me to send a form to someone, ask them to fill out and submit it to me without having them sign?

    Is it possible for me to send a form to someone, ask them to fill out and submit it to me without having them sign?

    Hi lisar6361593,

    Yes, you can create & distribute a PDF form to collect data using Acrobat free trial download Adobe Acrobat application | Acrobat Pro DC, please see this KB doc. helps Acrobat | Create and distribute PDF forms

    Kind regards
    Nicos

  • I tried Windows 10 and after 10 days of hell, I asked them to uninstall.  But went with is my old Acrobat Reader.  I tried to use it, but it says that my browser plug is missing and that it cannot start because MSVCP120 is missing on the computer too.

    I tried Windows 10 and after 10 days of hell, I asked them to uninstall.  But went with is my old Acrobat Reader.  I tried to use it, but it says that my browser plug is missing and that it cannot start because MSVCP120 is missing on the computer too.  A friend told me that I have to uninstall and then re-install again.  I am a 71 years who does not know what to do.  Help

    Hi jimm13886845,

    Of course I'll help you get this problem is resolved.

    Run this cleanup tool to uninstall any old version of Adobe Reader Download Adobe Reader and Acrobat tool - Adobe Labs.

    Restart your computer and then installer you old version of Adobe Reader using this link Adobe - Adobe Acrobat Reader DC Distribution.

    Let me know if you encounter a problem, we will be happy to help you.

    Kind regards

    Nicos

  • the list of columns separated by commas of a dictionary table table

    I use the following question.

    CONNECT_BY_ROOT SELECT table_name TopLevel, level,
    connect_by_isleaf IS_Node_leaf,
    substr (SYS_CONNECT_BY_PATH (column_name, ','), 2) column_name
    Of all_tab_cols
    where connect_by_isleaf = 1
    and column_id < (select max (column_id) + 1 all_tab_cols
    where table_name = 'Table_test')
    and column_id > (select min (column_id) - all_tab_cols 1
    where table_name = 'Table_test')
    START WITH table_name = "Table_test."
    CONNECT BY PRIOR column_id = nocycle (column_id - 1).
    AND table_name = "Table_test."

    The only problem with this query is that it goes into infinite loop. Can someone suggest a better solution?

    Why you ask all_tab_cols, I think will realize you that it will pull all tables in your database.

    If you want to retrieve the name of the table and the columns (separated by commas) your schema, you must query user_tab_cols.

    and here is the sql code

    select table_name,ltrim(sys_Connect_by_path(column_name,','),',') column_names
    from
    (select table_name,column_name,row_number() over (partition by table_name order by column_id) rn
    from user_tab_cols)
    where connect_by_isleaf = 1
    start with rn=1
    connect by prior rn=rn-1 and prior table_name = table_name
    /
    

    Or, you can use all_tab_cols to query a specific table by passing the name of the table and the name of the owner

    PRAZY@11gR1> desc test
     Name
     -------------------------------------------
     NUM
     NUM2
    
    PRAZY@11gR1>
    select table_name,ltrim(sys_Connect_by_path(column_name,','),',') column_names
    from
    (select table_name,column_name,row_number() over (partition by table_name order by column_id) rn
    from all_tab_cols
    where owner='PRAZY' and
    table_name = 'TEST')
    where connect_by_isleaf = 1
    start with rn=1
    connect by prior rn=rn-1 and prior table_name = table_name
    /
    PRAZY@11gR1> /
    
    TABLE_NAME                     COLUMN_NAMES
    ------------------------------ ----------------------------------------
    TEST                           NUM,NUM2
    
    Elapsed: 00:00:00.01
    

    HTH,
    Prazy

    Published by: Prazy on April 28, 2010 10:23

  • update failed opinion said: something is trying to trick firefox by accepting a security update. Please, contact your network provider and ask for help. help please

    What is the solution to this issue - is there one that will not make my eyes roll back in my head? What is a true message from Firefox?

    the popup looks like this:

    [firefix logo] Software update

    Update failed

    Something tries to trick Firefox by accepting a security update. Please contact your network provider and ask for help

    Whenever you get a message / popup that software / files must be updated.

    DO NOT USE ONE OF THE LINKS PROVIDED.

    If this can be a legitimate message, could also be a Virus or Malware.
    No matter when you want or need to check updates.
    Go to the website of the real owner of the program in question.
    For example, for Firefox, go to Mozilla.org
    or Firefox in any language.

  • seem to be two versions of Firefox on my computer and I keep asking for help Firefox whenever I use Firefox

    I have two versions of Firefox on my computer, and whenever I use Firefox, I continue to be asked to help Firefox in answering a question about the product.

    Not sure I understand you. You want 2 versions of firefox running on your computer? Or it happened accidentally?

    I uninstall firefox, make sure that both versions have disappeared and then install again. You will not lose your settings because the profile folder is not removed by default.

  • Something tries to trick firefox by accepting a security update. Please contact your network provider to ask for help.

    The warning came after connecting to the internet.
    Something tries to trick firefox by accepting a nonsecure update. Please contact your network provider to ask for help.

    This problem may be caused by the presence of remains files in the program folder Firefox (defaults\pref) as a file firefox.js which replaces the URL of update with a wrong link.

    Do a clean reinstall and do not forget to remove the Firefox program folder to delete files that are the problem.

    See also:

  • I get a Firefox error message that says, "something tries to trick Firefox by accepting a security update. Please contact your network provider and ask for help. »

    I get a Firefox error message that says, "something tries to trick Firefox by accepting a security update. Please contact your network provider and ask for help. "Do you know what is happening here - what could be the problem? (I have the latest version of Firefox already installed. I previously got Firefox error messages indicating "Firefox update failed". However, I already have the latest version of Firefox installed when I got these error messages.)

    I think that we must hope that the problem will be resolved at the present time. If you see the error message again post in this thread. Also, it would be unusual get this message while trying not to update, but if you get if you try to copy and paste the details of console error that they can be useful.

    Use

    • keyboard Ctrl + Shif + J
    • or button-> Web Developer Firefox-> Console errors

    This kind of message is apparently the only normally expected when you try to update to Firefox. It seems strange that you get the message using a 'Œuvres' document, but others have reported this message seemingly random incidents.
    (So normally, you must clear the error console, and then try to update knowing the error messages have been the result of this attempt to update)

    If I had this problem my concern would be that some kind of malware may be involved, but the message can then indicate that all this malicious program is upset.

  • I had Cogeco security Anti Virus etc installed on the computer, called and asked them to remove it, and when they did, he deleted Outlook Express too.

    I had Cogeco security Anti Virus etc installed on the computer and called and asked them to remove it and when they did... He also took off my e-mail Outlook Express6 program.  After talking to them... they said was probably altered the outlook express and take off the anti virus program him took off the corrupt outlook express as well.  Can someone tell me where to find a download for outlook express6 for windows xp professional?

    Thank you

    original title: download of outlook express6

    They screwed something. OE is a part of IE6 and both are part of the XP operating system. You can't take off OE is there a standalone download.

    Control Panel | Add/Remove programs. Add/Remove Windows components. OE is checked and restart.

    If OE is verified:

    Right click on the desktop | New | Shortcut. Navigate to "c:\program files\outlook express\msimn.exe". Click next | Click Finish.  It will be a new shortcut on the desktop.

    I would like to know where you are now.

  • Always ask for help.

    I have asked for help but received none. I have an e machines T6520 in and all of a suddenn I have no audio device. I have no idea where it went and how to get it back. I went to the website of machines e and downloaded audion drivers, then I extracted the file now what I'm doing and that will fix it? Please please some can help me.

    Go here:

    http://support.gateway.com/us/en/EMAC/product/default.aspx?tab=1&modelId=1645

    Download the file and save it to your hard drive.

    Make a new folder somewhere and unzip him compressed file you donwloaded inside.

    Double-click setup.exe to install. Follow the instructions on the screen.

    See you soon,.

    Jerry

  • I just got a call from the service center of the sentence above, Microsoft asked them to call

    original title: Onlinepcmasters

    Hello

    I just got a call from the service center of the sentence above, Microsoft asked them to call.  They said that I got the virus bluebird on my computer and it would break in 2 days!  I guess it's a total scam

    See this post sticky at the top of the forum:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-security/i-received-a-phone-callemail-from-someone-saying/98a199f4-82cd-4433-b333-045451b89e2d

  • How would enable remote desktop connection and asking for help?

    How would enable remote desktop connection and asking for help?

    Do you mean on this site?  Sorry, but we don't do that.  We do not have the software required to make the connection (it's too expensive to buy personally) and even if we did we would not get in this practice.  We work by display.

    If you mean for someone else to help you, here is the procedure: http://www.howtogeek.com/howto/windows-vista/turn-on-remote-desktop-in-windows-vista/.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • ask for help, I had to cancel a package of adobe Illustrator in this Bill at all. Please help me

    ask for help I had to cancel a lot of Illustrator from adobe in this Bill at all. Please help me

    Hello

    Please refer to cancel your Adobe Creative Cloud membership

    Incase you still need help please contact the support.

    https://helpx.Adobe.com/contact.html

    Concerning

  • I'm so frustrated!  I have CS5 Master Collection.  I want to UPGRADE to CS6 Master Collection.  I want to be on the cloud!  I can't find where to put up-to-date or any CONTACT to ask for help.  It shouldn't be this hard.  HELP Please!

    I'm so frustrated!  I have CS5 Master Collection.  I want to UPGRADE to CS6 Master Collection.  I want to be on the cloud!  I can't find where to put up-to-date or any CONTACT to ask for help.  It shouldn't be this hard.  HELP Please!

    See the link below:

    Creative Suite 6

Maybe you are looking for