separated by ~.

I have string input like this

I have four fields separated by ~.
required output is separated those value by ~.

ex:

1234 ~ 56 ~ 897 ~ 12

Means:

1234
56
897
12

ex:
~ ~ 123 ~ 34
null
null
123
34
with t as (
   select '12~34~56~78' x from dual union all
   select '~34~~78' x from dual
)
--
-- end of test data
--
select
substr(t.x,1,instr(t.x,'~',1,1)-1) val1,
substr(t.x,instr(t.x,'~',1,1)+1,instr(t.x,'~',1,2)-instr(t.x,'~',1,1)-1) val2,
substr(t.x,instr(t.x,'~',1,2)+1,instr(t.x,'~',1,3)-instr(t.x,'~',1,2)-1) val3,
substr(t.x,instr(t.x,'~',1,3)+1) val4
from t;

Tags: Database

Similar Questions

  • separation of Apple Watch

    I'm waiting for my 5th replacement for Apple Watch Stainless, who suffers from the separation of the disc back sensor from the body of the watch about every three months. Any suggestions for a cure. Not very useful Apple technicians in the search for a permanent solution for this.

    What do you do to cause this? All out of ordinary things, perhaps something that involves a large number of jerks?

  • Separator for set two sets of headphones to the port single external microphone on iMac

    We want two people appear on the screen even when talking to anyone else on Skype. Is there a splitter available that would allow me to set the two sets of headphones to the port single external mic so that we can use the headset mic and get good sound quality?

    All divisor inexpensive listener should be able to do, for example that I found on Amazon:

    https://www.Amazon.com/Belkin-speaker-and-headphone-splitter/DP/B000067RC4/ref=s r_1_2? ie = UTF8 & qid = 1473882646 & sr = 8-2 & keywords = earpiece + separator

  • I can't get my iPhone 5 to recognize an external mic using the separator Conwork mic

    I can't get my iPhone 5 to recognize a micro Conwork separator. Also my iPad won't recognize the port splitter. My iPhone and iPad instantly recognize the Apple headphones with microphone. Conwork announces that their product works with iPhones. I am trying to use a dynamic microphone for filming with my iPhone and iPad.

    There is no STD for headphone mini-jack 3.5 mm with apple to mic input handle one other way makes handle it otherwise, if the separator conwork mic doesn't have the Apple way manipulate this will never work if they declare compatibility apple I would contact them the possibility of the converter in default

  • Port of question - no video - DVI double separator i7-HDMI > DVI

    What I'm missing here?

    I have an i7 2.3 g-Mini late2012.  10.8.5. in a studio where I fed a dual display

    using a separator of video signals by - everything first, Tripp Lite, now an Aluratek - DVI 2-port video splitter (powered

    units).

    Followed by all the good order in start-up, the device worked for maybe a week and a half.

    Walked away and returned after maybe 48 hours either from Friday to Monday.  Computer is running

    "sleep" mode... The attempt, no signal wake video monitor not recognized.  Powerd deactivation/activation, no change.

    Reset PRAM and disconnected/reconnected Mini power after 30 seconds... tried reconnect splitter/monitors...

    sequence... still no resolution of the video signal to not watch.  Indicators on the splitter show the signal of the i7.

    and connectivity to the monitors.  I excluded this device that the fault.

    Am following the process mfgr correct insofar as the separator like so new out-of-box in reconnecting

    power on it - getting nothing.  Strange thing is, I had the same problem with the Tripp Lite - that's why I

    bought this Aluratek separator to replace.  Now, same problem.

    When connected to same monitors, this worked fine right out of the box.

    Now the same problem as the other separator.  Changed two different HDMI > DVI

    cables. All cables. No change.

    Either monitors directly linking ON the HDMI Mini port - display works fine.

    Tried the MiniDisplay port to the separator. didn't work...

    Which may conflict in operating system - something making these monitors sleep, something system-wise

    who is disrupting this process?  Even pulled all other connections (external USB port stuff) and it

    did not solve.

    It is also a coincidence for two separators to fail with this same issue - seems to indicate something with the

    Mac. In the meantime, no double posting until I can understand it.

    Any help greatly appreciated-

    Thank you

    Mike

    I suspect the power adapter... and maybe check for a loop of mass too.

  • How can I copy the list of names of files in the finder and set the Clipboard filenames separated by commas?

    Hi guys, I was wonder if anyone can give me a hand with a script.

    I need to be able to paste a list of file names of the files as follows:

    0001.jpg 0002.jpg 0003.jpg 0004.jpg

    At the moment, if I select the files in the Finder, copy to the Clipboard and paste them in TextEdit, they are like this:

    0001.jpg

    0002.jpg

    0003.jpg

    0004.jpg

    I found a similar but slightly different script and I don't know how to change it. Here it is:

    Define extension_list to {"jpg", "" JPG","jpeg","JPEG"}

    the value cbNames (Clipboard text) paragraphs

    Set csvNames to {}

    the tid value delimiters to point to the text of the AppleScript

    the text value of the AppleScript point delimiters ".»

    -now, make a list of names without extensions

    Repeat with the names in cbNames

    If the point 2 of the text names is extension_list then

    copy of text 1 of names at the end of csvNames

    end if

    end repeat

    Journal csvNames

    -now the filenames as comma CONCATENATE string separated

    the text value of the point delimiters AppleScript «»

    csvNames value cross-as text

    the text value of the point AppleScript delimiters tid

    There is an easier way. Open a TextEdit document and paste the list in. Place the cursor at the end of the first item and drag it to the start of the second.

    Press on + command + c to copy and then command + f to bring up find it. Press command + v (do not click in the first search field). Check the 'Replace' box, click in the field replace, and then type a comma and a space.

    Click 'All' and then 'done '.

  • separated by pitch button note does not appear

    "separated by the pitch of the notes" button does not appear for me! I tried a lot of communities on the internet but I can not find someone with this same problem. The "separate joint ID" button is gray, and the button 'separated by the pitch of the notes' appear not at all

    Works very well here (you have each checkbox enabled in the preferences of Logic ➤ Advanced?)

    ID of the joint

    ID of the joint is active only if the selected area of MIDI MIDI events with different ID of Articulation. Go to the list editor and allow joint ID from the pop-up Menu. This will add the ID column where you can see if all MIDI events have the same ID of joint

    Separate the command in the main Menu

    Three separate must be visible in the main Menu (Edition ➤ MIDI events separate ➤) when a MIDI region I selected.

    Separate the command in the context Menu

    The three commands separated are also displayed in the context Menu (in the MIDI submenu) when you click on a region.

    Hope that helps

    Edgar Rothermich - LogicProGEM.com

    (Author of "Graphically improved manuals")

    http://DingDingMusic.com/manuals/

    "I could receive some form of compensation, financial or otherwise, my recommendation or link."

  • Under account settings > account > Copies and folders > Bcc these email addresses, which is the separator between multiple addresses?

    Under account settings > account > Copies and folders > Bcc these email addresses, which is the separator between multiple addresses? Using a space between addresses gives an error message.

    THX, Jon

    Try a comma.

    He did this in the BCC or CC BOX when it's empty, but is not too useful when you already have something there.

  • IMessage Apple Watch has two interviews separated with the same person?

    My new Apple Watch has a problem with iMessage and I know how to fix this on my iPhone but not watch?

    On my iPhone, that my ID apple is connected to more than 10 devices and sometimes when a new device is added, it adds the addresses on my apple for iMessage and FaceTime ID and I always fix by unchecking the addresses that I don't want in the application settings under "Messages" and "FaceTime." However, this isn't the same thing to watch because there is no option in the settings on the Apple Watch and the watch App on my iPhone.

    I would like to help please?

    Hello

    Apple Watch uses the same parameters (for how you can be reached and how new conversations are started) for Messages as your iPhone.

    If you have two interviews separated with the same person, the following steps may help:

    • On your iPhone, check if there is more than one contact form in Contacts of this person (if so, remove duplicates).
    • Delete old Messages conversations with this contact on each of your iPhone and watch:
      • iPhone: app Messages > swipe to the left on a message thread > delete.
      • View: Open the Messages app (from the home screen, which is accessible by pressing the digital Crown) > swipe to the left on a message thread > tap on Trash / delete.
    • On your iPhone in the app Watch: Watch My > general > reset > press reset sync data:
      • You won't see anything happen after pressing it (the process runs in the background, invisible to the user).
      • Leave a minute or two to allow the course ends.
    • Restart your iPhone and your watch (turn the two together off the coast, then restart your iPhone first):
  • Who ask us to Mozilla to bring SPACE and SEPARATOR buttons?

    Having to use Classic theme restaurateur is a drawback that brings other unwanted changes. We are only talking about the addition of a space and separator button. I understand the desire to refresh the appearance of Firefox, but some options of customization should be left alone. It is more difficult to be a loyal user when you constantly have to implement workarounds. Thank you.

    Note that flexible space and separators are still supported in current versions of Firefox.
    They are not present in the palette to customize and you install or activate an extension like CTR for the present in the palette to customize.
    Once you have trained in a toolbar, you can disable the CTR then you should still see these items in the toolbar (but is no longer in the palette to customize) after you restart Firefox.

  • After the update to Firefox 40.0.2 three separator lines appear in "view your story.

    After update of FF 40.0.2 three lines of the separator is appeared in "view your story. And they stay there even if the history is cleared.

    The three dividing lines appear in 'show your history' if the string 'identity.fxaccounts.remote.webchannel.uri' has an empty value. If the default value (https://accounts.firefox.com/) after the reboot of lines three FF disappear.

    According to me, that this string was missing or not defined in previous versions of FF.

    I understand the FxAccountsWebChannel listening to certain types of events.

  • Apps do not recognize "separated" as incorrect

    Apple Apps such as TextEdit (1.11) or Pages (5.6.2) do not recognize "separated" as incorrect to separate spelling. When I type "distinct" in TextEdit or Pages it does not get a line of red underline, while "separete" or "sepere" only.  A spell check manually triggered also passes over it. Anyone else notice this problem?

    I checked my local dictionary (~/Library/Spelling/LocalDictionary) file and "distinct" is not here, so I haven't added to all ignore lists that I am aware of.

    Anyone know how to fix this?

    Thank you

    Update to OS X. You use 10.7.5, while the current version is 10.11.6. If you are unable to upgrade because of hardware restrictions, there is no solution available as Lion's is more updated with the exception of security updates.

    You can report your concerns to Feedback - Apple Support or bug - Apple Developer report.

  • I have a column with two values, separated by a space, in each line. How to create 2 new columns with the first value in a column, and the second value in another column?

    I have a column with two values, separated by a space, in each line. How do I create 2 new columns with the first value in one column and the second value in another column?

    Add two new columns after than the original with space separated values column.

    Select cell B1 and type (or copy and paste it here) the formula:

    = IF (Len (a1) > 0, LEFT (A1, FIND ("", A1) −1), ' ')

    shortcut for this is:

    B1 = if (Len (a1) > 0, LEFT (A1, FIND ("", A1) −1), ' ')

    C1 = if (Len (a1) > 0, Member SUBSTITUTE (A1, B1 & "", ""), "")

    or

    the formula of the C1 could also be:

    = IF (Len (a1) > 0, RIGHT (A1, LEN (A1) −FIND ("", A1)), "")

    Select cells B1 and C1, copy

    Select cells B1 at the end of the C column, paste

  • Where can I find toolbar separators and spaces containing the separated my icons?

    I've updated to Firefox 36.0 and I refreshed it was slow in its operation. My toolbars customization, I noticed that the separators and adjustable spaces previously, I had to keep my separated toolbar icons were is no longer included in the charge.
    My question is where can I find them?

    Currently, only available for bookmarks toolbar folder. The separators have been removed in the new user interface that came with Firefox 29, back in April 2014.

    It - https://addons.mozilla.org/en-US/firefox/addon/classicthemerestorer/ - is the only extension I know which supplies separators to other toolbars.

  • How can I remove lines "separator" bookmark?

    I want to eliminate all the separator lines in my favorites. I'd like them to go away.

    Hi, the separators that you created yourself can be removed by a right click on it > delete. Hope that helps.

  • Can I add more than one horizontal separator to the PanelUI (new menu panel)

    Steps to follow:
    1. click on the new menu panel button (hamburger)
    2. click on customize
    3. on the left, drag 'Separator (for the Panel menu)' of 'Tools and additional features' in the Panel on the right. Appears in a horizontal separator. "Separator (for the Panel menu)" no longer appears in the 'tools and additional features.

    I can add the many 'separator' (vertical separator) on toolbars, but it seems that I can only add a "separator (for the Panel menu)" (a horizontal separator) in Control Panel.

    I would like to add additional horizontal separators in the Panel. Is it possible to do?

    Firefox version: 33.1.1

    Firefox does not come with a separator element in the palette to customize.

    You have the extension classic restaurateur theme?

Maybe you are looking for