Why the function of integrated separator string is missing in Oracle?

Hi all

It's maybe a generic/discussion question. And it's purely for learning about how Oracle prioritizes its development on the functions in construction.

Well, we have very userful built-in functions (http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions001.htm) is transformed during the versions of Oracle from simple to very complex (syntactic xml and data mining functions)

But why is this important function to split a string has been neglected (may not be the right word) by Oracle.

Be a learner curious and admirer of such a wonderful technology database called Oracle, I always thought that it must have a dedicated channel, divide the function.

My question is: is this something that can be generalized in a built-in function?

or

Is he coming releases?

At least a simple function first (I guessed right his name would be splitstr and the very basic features to do our job of splitting, maybe I'm wrong in thinking this way, please correct me if...) Thank you in advance!)

splitstr('A,B,c',',','col')-> (separator ',' and the fractionating column mode)

Output: A B C (three separate columns)

splitstr('A,B,c',',','row')-> (separator ',' and the mode line split)

Output:

A

B

C

----------

If oracle has this, there will be a lot of code reduced and we can be saved by connect or recursive with clause or as a matter of fact even xmltable (with or without tokenizer ) for the separation of the channels.

What you have to say about this? You can ignore this naïve question if is not a value you answer.

And thanks for everyone who reads this discussion!

See you soon,.

Manik.

Can you please help me understand why Oracle has its participation in develping and DBMS_UTILITY.COMMA_TO_TABLE now then?

http://docs.Oracle.com/CD/B19306_01/AppDev.102/b14258/d_util.htm

Oracle can only tell you why they have developed this particular function. But the fact that Oracle included in a package of "utility" tells me that they do not consider that there was a generic number of use cases. These functions often begin as internal functions that Oracle decides to publish.

But if you read this API spec you'll see that he does that to a VERY PARTICULAR use case and has several restrictions.

The list must be a list separated by commas of non-vide: another thing that a comma-separated list is rejected. Do not count the commas inside double quotes.

Entries in the list separated by commas may not include multibyte and dashes (-) character.

Also, returns a collection which would normally be used only for a very limited number of items.

It is not yet near a general-purpose function.

A major complication with such a function in SQL is sql is generally used with more than one, or even millions, of lines.

How you specify to Oracle where to put the collection on each of these lines?

New - Oracle is a relational database. With the help of sql to manipulate collections is NOT a relational paradigm.

Just my opinion. Others can and will disagree. But you may have to wait for the weekend for these answers.

Tags: Database

Similar Questions

  • Why the function mouse degrades in programs activeX in IE8 on windows xp?

    Hi all

    OK, above in the title is the problem. The following are the specs and what has already been tried with no positive results. Note that the function mouse is good in all aspects of windows except in the enumerated set of activeX program below. Thank you all in advance for any suggestions...

    Specs.

    Dell Dimension 2400 desktop.

    HP PS/2 compatible mouse.

    XP-Home edition OS with sevice pack 3.

    McAfee Security. With windows Defender & firewall disabled. McAfee Firewall is enabled.

    Program problem: Majong Dark Dimensions.

    Tried many things.

    • Disable all unnecessary modules.
    • Uninstalled the drivers, updates the mouse & keyboard drivers.
    • Update Flash player & Microsoft Updates.
    • Uninstalled ' problem program & reinstalled.
    • Disabled mouse 'bells and whistles '.

    [Moved from comments]

    Hello

    Thanks for the reply.

    1. What is the number of brand and model of the computer?

    2 - is a wired mouse / wireless?

    3 have you tried using the mouse on a different USB port?

  • NONE of the functions of integration works

    for the derriГЁre 3 days, what composition emails with windows live on Internet ExplorerNONE to insert functions (attachments / Office of documents / Photos / Bing - same emoticons) is functionng. Spare yet possible with OUTLook and when I access Windows Live via Firefox features is here. Using IE7, updated to IE8 yesterday and always happens and I rebootd - several times

    Ask to access Windows Live via a browser in the Windows Live Hotmail PortalSolution Center. Brian Tillman [MVP-Outlook]
    --------------------------------
    https://MVP.support.Microsoft.com/profile/Brian.Tillman
    If a response may help, please vote it as useful. If a response to the problem, please mark it as an answer.

  • Why the function "Insert an Image" does not insert the code at the location of the cursor?

    I mainly work with php files and I'm still working in code view only.  I am editing the php files that I wrote using a different code a few years ago Editor.  I place the cursor to the place in the code where I want to go the image tag and use the menu "insert an Image".  The code is then placed directly under the < body > tag.  It is always placed in the same place no matter where I place it in the code.  Can someone tell me what is happening here?  Thank you.

    Not sure why it does not insert the image where the cursor is, but my workflow is much easier. I mainly work in code view and I will drag the image from the files Panel to where I want to in my document. Simple

  • Why the function "move to new window" that I used to use does not work when I right click on the tab more?

    It was when I right click on the tab in Firefox I could use the option 'Move to the new window'. Now when I go down to this option, it seems it will work, but nothing happens. The other day I changed some options in Firefox, but I don't remember changing anything that sounded as if it would have this effect, and now I can't find all the options that seem to fix. Thanks in advance for any help.

    Hello Beorn, probably the problem is an extension that is not working properly. Try Firefox Safe mode to see if the problem goes away. Safe mode is a troubleshooting mode, which disables most of the modules.

    (If you use it, switch to the default theme).

    • You can open Firefox 4.0 + in Safe Mode holding the key SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • Or open the Help menu and click on the restart with the disabled... modules menu item while Firefox is running.

    Once you get the pop-up, simply select "" boot mode safe. "

    If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. To do this, please follow article Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems .

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. It might help others who have the same problem.

    Thank you

  • First CC2015 - why the functionality Alt + Shft has changed when you try to replace a sequence on the chronology of the tray?

    I frequently and drag a sequence from the tray to replace an earlier version of it on the timeline. I use Alt-shift to keep that all mount points. This feature has changed. It replaces the old sequence with the first clip from inside the new nested sequence. Is this a bug? Is there a way to get around this?

    On an iMac, retina 5K, Yosemite, all software up to date.

    Hi Ted,

    ALT + SHIFT + do drag works very well in 2015 with clips - just re-tested. I'll try also with nested sequences, but if the problem is with nested seq, consult your option "insert and replace sequences as nests or individual sequences' on top left of your sequence died.

  • Why the links to follow, Bookmark and Actions missing from the Discussion threads in Safari?

    When you use Safari (9.0.1) in El Capitan (10.11.1), I don't see icons with links to follow, favorite or actions (see below) which generally appear to the right of a topic of discussion. I am connected, but these links are simply not there. This problem does not occur in Chrome or Firefox. Why would they be missing in Safari?

    If you use an ad-blocking Safari extension, you may need to disable.

    (136867)

  • Is there a function "off aggregate" a string of csv in Oracle?

    Hello

    I want to turn the channel

    "7654, 7698, 7782, 7788".

    in a list of values that I can use in the WHERE clause of a SELECT statement.

    For example,.
    select ename
      from emp
     where empno in (somemagicfunction('7654,7698,7782,7788'));
    I know how to do the "hard". I'm trying to find out if there is an "easy" way

    Thank you for helping.

    John.

    For many lists, you can also use (from 11r2 upwards):

    SQL> var str varchar2(4000)
    SQL> exec :str := '7788,7900'
    PL/SQL procedure successfully completed.
    
    SQL> select empno, ename from emp where empno in (select to_number(column_value) from xmltable((:str)))
    /
              EMPNO ENAME
    --------------- ----------
               7788 SCOTT
               7900 JAMES     
    
    2 rows selected.
    

    For a list of varchar2, only a small change is needed...

  • Resize the application window to customize the function of the screen - problem?

    I know this may seem a little geek,

    but I wanted to know why the function of the shortcut is irregular:

    Resize the application window or floating window to fit screen. (Press again to resize the window so that the contents of the screen.)

    CTRL +-(backslash)

    Command +-(backslash)

    1 window Resized to fit screen - activated via the shortcut Ctrl +-

    Screenshot (1).png

    2. the window is not Resized fit screen - function is disabled have it minimized the window

    (The title bar is hidden,

    but the right is a vertical space,

    where the software does not match the screen completely.)

    Screenshot (2).png

    I want to know why this happens,

    at least on Windows is... (Yes, I use Windows 10)

    It would be on purpose?

    Some features to help with something,

    When the user returns to minimize the window?

    I wanted to keep window screen will perfectly still.

    even when minimized and return to the software;

    I need more space on the screen,

    in the vertical direction especially (because I have a screen ultra widescreen 2560 x 1080).

    To see a preview of the video is better,

    because 50 percent of the preview screen,

    However, if the proposed title bar (i.e. without use shortened).

    lose a small percentage.

    I want the amount of space as possible.

    I'm tired of getting retracing the shortcut each time I pass a task.

    Submit a bug report and use the version of application window for now. Maybe someone here could offer a workaround solution, but I think we have said pretty much everything what it means

  • Why the bounding boxes are different between the XI Acrobat Pro and Acrobat DC?

    Hello

    Firstly apologies if this been asked elsewhere, but so far I have failed to find a solution.

    I have Acrobat Pro XI and Acrobat DC, each on two different PCs using Windows 8. Why the function edit text & Images interprets the same PDF document differently when displaying the bounding boxes. In Pro XI he produced 7 inclusive about 7 decent size paragraphs of text only. In MS bounding boxes are reduced to only 3 each effectively covering most thick of text in the document. To quickly select 3 of 7 bounding boxes to remove them entirely from my PDF seems not to be possible in DC, where I appear instead of having to select large portions of the text instead and delete accordingly.

    I don't see where in preferences maybe you can change the 'sensibility' or 'threshold' to distribute a PDF file in smaller sizes (but more) bounding boxes. Is it possible to make DC behave like a Pro XI?

    Any help would be appreciated.

    Mark

    These boxes are the result of speculation, well enough. The algorithm behind

    He probably changed between versions, so the different results.

    There is nothing you can do about it.

  • The function parameters from a non sequential fashon

    Consider the function below:

    personalfunction (String Name, int age, City: String): void
    {
    trace (name + "is" + age + "years old and lives in" + City + ".")
    }

    The settings can only (?) be passed in the order they are declared in the function, as shown below.

    personal ('John', 40, "London", 0)

    If the order is changed like: personal("London" ", John", 40), there will obviously be a type error (position 2 parameter is an integer).

    Is it possible to pass parameters to the function as: personal(city = 'London', name = John", age = 40)?

    In this way, we don't have to worry about 'order' in which parameters are passed.

    You can use:

    obj instanceof. Age number

    obj. Name instanceof String

  • Is there a way to parse a string containing % (percentage symbols) using the function 'analysis of the chain?

    I am communication in series with a mirror device and the syntax of the input string contains this text: "% hr ="

    I was not able to find a way to say to the function that the percentage here is not a format specifier. Is it possible, or should I just try to use a different function?

    Thank you.

    Use %% in your format string for what he knows to use the percent literally.  So % RH = %f

    EDIT: Darin has one here in front of me.  It seems to be-% and % both work.

  • Why CVI have functions that duplicate the functions of ANSI C file handling (ex: Openfile)?

    Why CVI have of file manipulation functions that seem to reproduce the functionality of the ANSI C functions?

    Is there an advantage to using the CVI functions?

    As the CVI was released (1987), until the ANSI-C standard is released (1989) maybe the question should be the other way around!

    In those early days, CVI was supposed to be cross-platform, so it was logical to develop a set of libraries that operate in the same way across the different computers it was targeted at. These days, the focus seems to be primarily under Windows, so this philosophy at the beginning is a bit redundant, especially, as you say, with the widespread adoption of ANSI-C.

    Personally, if there are similar functions in CVI, and ANSI, I'll go for the ANSI, whenever for portability of the reasons, but yet I write code in a number of different programming environments.

    JR

  • How do the function of table 1 d search case-insensitive for the array of strings

    How do the function of table 1 d search case-insensitive for the array of strings

    Hi Karine,.

    convert the two (table and search for the string) to lowercase before using this feature...

  • The function "Time in seconds" does not work as I expect. Can someone tell me why?

    In the attached VI my hour entry to the function "Time in seconds" is 11, but the output is 12:09. Why is he 12:09 and not 11:09?

    Thank you.

    chuck72352 wrote:
    I tried and it works, but I don't know why or how it works.

    Tried what idea? If you talk about my idea above, position 10 of the cluster is "is DST', look at the help. The only way to make sense would be to identify the components of the cluster correctly, as NEITHER should have done, so the names will get to the Unbundle propigated.

Maybe you are looking for

  • Satellite - MX40X - 286 slow typing

    I've been bussy with my connection LAN wireless and my ip setting and gatewat ect. Saved setting. But now when I type, my letters turn up really and I mean really slow... the program itself did not take long. Only things I want to type. This is the t

  • An email from micrsoft

    I received an email that I was selectit to win Is it treu or not. Greatings hans

  • Cannot open any program from microsoft office

    When I click on Excel, Word, Power Point etc, I get this "unregistered function ID. I had the problem earlier with a corrupted file and I run chkdsk /f/r.

  • PC will not stay connected to the Internet in the evening.

    (Moderator note: title was "network programs network networking Internet Web site Site Web Web Site URL") My Dell laptop that was purchased in March, 2012, had no problems to connect to the internet until recently.  Now it connects the morning, but s

  • DV1000 - how to restore from OS /driver CDs and do I have the right?

    I have a DV1000 laptop (product DZ731AV).  Windows XP home.  How can I make a just system windows XP home recovery and drivers disks? My computer messed up and I have to do this restore complete. It was purchased before 2006 so the hp support info on