Chr (44) to replace the commas separating the arguments of a function?

In Oracle SQL, it is possible to replace the commas between the arguments of the function with chr (44)?  A simple example with substr():

substr ("yyyy", 1, 1) - the result is 'a '.

vs

substr ("aaaa" chr (44) 1 chr (44) 1)-this should also return 'a '.

Is there a way to make the second example works the same way as the first?  I tried different techniques escaping, string concat, etc., and I failed.  Is there a method to replace the comma (",") the character of the way I'm looking for or is this impossible?

Thank you

N °

The Analyzer seeks commas, not for other things you as a human being assimilated by a comma.

Tags: Database

Similar Questions

  • Closure on the arguments of a function

    I know it must be simple, but I'm apparently not find good Google search terms.

    I have a function called foo, in which I want to pass any number of arguments.  Each argument will be the name of a page element.

    For example: foo ('P21_CUST_NAME', 'P21_CUST_CITY', 'P21_CUST_ZIP');

    I want to iterate (loop) over the arguments and values of each test item.    Foo will return a string like. y.n.y. that will be searched to find all occurrences of. n. If all occurrences of. n. lie, then the page is not fully completed, and I'll show you a red icon.

    I want to build this as a multi-purpose function that can accept a number any arguments.  The logic in the loop (i.e. null or not) is not at issue here.  I can do it without problem.  I just need to know how a loop on all of the arguments passed in foo, if there is an argument, or three or twenty-seven.

    Thoughts, please?

    Apex 4.2.3.00.08

    Mark T. says:

    I was unclear in my use of the word "function".  I want to define a function in JavaScript, not PL/SQL.

    In this case, iterate over the elements of the arguments object:

    function foo () {
      for (var i = 0; i < arguments.length; i++) {
        alert(arguments[i]);
      }
    }
    
  • What does '... argument ' average in the arguments of a function

    So can someone explain this?

    So far, I have seen no document on this subject. I don't know how to use it, but I would like to know what it means and.

    Things like these makes the flash/flex/as learning reylly hard when there is no documentation.

    If you define a function, you can add... .args as argument, which means that the function can receive an array of multiple arguments. This is useful if you don't know in advance of the arguments how your function will receive.

    An example:

    public void sum(...args):Number

    {

    var s:Number = 0;

    for each (var n: Number in args)

    {

    s += n;

    }

    return s;

    }

    See also: http://www.adobe.com/livedocs/flex/2/langref/statements.html#..._%28rest%29_parameter

    Dany

  • Problem with the arguments of a function

    I'm having a problem with the arguments of a function does not. In the attached example, the values passed to the function never appear within the function.

    Can someone tell me what I am doing wrong?

    Thank you
    David

    * the params in your displayPic function should be only by var, not their names name var and their data types *.

    Copy and paste the code I wrote below in a new flash on chassis of the _root document, follow the code, test the movie and check your output window. you will see how to pass arguments to a function is as simple as 1, 2, 3.

  • How to replace the factory supplied FPGA functionality in myRIO?

    Hello

    I have created an example of FPGA code and downloaded in myRIO.  I expect he would have erased the FPGA factory feature shipped which included all the interpretation of the digital (DIO) of input/output PWM asynchronous universal receivers/transmitters (UART), inputs of encoder, I2C and SPI.  Is it possible to put this factory shipped to FPGA code?  Where can I get this code?

    Thank you

    Ajay.

    Hello Ajay,

    When you run your host code, which calls the FPGA VI (opens its reference), it automatically deploys the FPGA code to the material. If you run after code samples, to come with drivers myRIO, it will deploy default FPGA code included.

    To find the FPGA defalt code, which comes with the drivers, create a new project to create a project of-> models-> myRIO and select myRIO custom FPGA project, you will find a FPGA Default.vi of hand inside.

    It is sufficient to note that functiality UART is not implemented on the FPGA, but instead uses a feature included in the architecting processor. If you still have the UART functionality, even with your custom running FPGA code.

    Thank you

    AREV

  • 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
    
  • replace the comma with point to a string

    Hello

    I tried to replace the comma in the chain attached to a point, but I can't make it work. What I am doing wrong?

    Calle cordially

    You have a space after the comma in your string constant.

  • Replace the comma between quotation MARK

    Hello

    Here, I want to replace the comma between CITATION to "#", but my boss does not work...

    could someone help me please?

    SELECT

    REGEXP_REPLACE ("Mike" JOHN, KELLY "Marc")

    "" [^,] * (EN) [^,] * "', ' #»(, 1, 1) AS A RESULT"

    DOUBLE;

    Maybe

    Select ' Mike, Michel 'JOHN, KELLY' Marc' orig.

    regexp_replace (' Mike, Michel 'JOHN KELLY' Marc', '"(\w+), (\w+)" ', '"\1#\2" ' ") new_val

    of the double

    ORIG NEW_VAL
    Mike, 'JOHN KELLY' of Michel Marc Mike, Michel 'JOHN #KELLY' Marc

    Concerning

    Etbin

  • Help to replace the chr (160)

    Hello

    I work in the Application Express 4.2.4.00.08 and I am looking to replace a 160 character (hard spaces), and I used this function:

    Replace (('473400'), chr (160), 'y')

    But this feature does not work, I also tried with the translation, but not work.

    Someone can help me.

    Thank you.

    I put your query in the Appex sql and commands return the character is 49824


    I have change my query by:

    Select Replace ('473400', Chr (49824), 'y') of the double

    This query works.

    Thank you.

    Kind regards.

  • Replace the last comma by "and".

    Hi all

    Please let me know is there a simple way to replace the last comma in as string with 'and '.

    for example: 1. abc, xyz, wuv must be returned to abc, xyz and wuv

    2 abc, wuv must be returned, abc and wuv

    3 abc and pqr, cuq, wuv must be returned to abc and pqr, cuq wuv

    DB version: 11.2.0.3

    Thank you

    DS

    Hello

    Here; s in one direction:

    REGEXP_REPLACE (str

    , ',([^,]*)$'

    , 'and \1 '.

    )

  • Replace the JQuery text is all the text in the webapp manufacture

    Hello, I hope someone could give me a hand!

    On this home page: www.largemouthfrog.net I am running a Web application called "Testimonials" which produces a string of words/phrases on the basis of the selected check box. "They come in the page as: < li >... <div class= 'testimony-commentaires1' >awesome! Excellent! really good < /div >... < /li >

    For each < li > there is a separate set of words or phrases separated by a comma.

    I want to remove the comma and replace < br >

    I have the following JQuery (see below) which replaces the comma with < br > BUT it must be the first instance of < li > of

    "<div class= 'testimony-commentaires1" > and it repeats again and again for all other < li > ' s. " In other words:
    "great!, great!, really good" is repeated several times.

    I tried to put the JQuery inside available to the Web application list, but does the same thing.

    < script >

    {$(document) .ready (function ()}

    var str = $(".testimonial-comments1").html () replace (/, / g, '< br / >');

    $(".testimonial-comments1").html (str);

    });;

    < /script >

    Any help would be appreciated!

    Hi Wayne,

    Your code is a bit too simplistic and it fails because it is not really

    loop through all elements of web application and instead, it captures the content of the

    first one defines the rest of them with this content. I have created some

    code that will help you get started. Here it is:

    $(".testimonial-comments1").each (function (index) {var tags_text =

    $(this) .text (); var split_text = tags_text.split(',');

    Console.log (split_text); });

    You can see here http://mgtrain.worldsecuresystems.com/tags

    My class is simply called "label" and my layout of the list looks like this:

    {tag_name}

    {tag_tags}

    Basically, this code creates an array of strings for each iteration.
    All you have to do now is to browse table and Add.
    "to each.

    point, join the elements in a string, then set $(this) .text () of this new

    value.

    That said, I recommend you to build a form UL these options in this

    case. It's a bit more semantic to me.

    I can actually make this my first blog at www.twoblokeswithapostie.com

    See you soon,.

    Mario

  • Mac Book Pro is not too hot.  It is time to replace the battery?  Can I replace the battery?

    MacBookPro is not too hot.  It's time to change the battery?  Can I do it myself?

    The Mac runs his fans in a feedback loop, based of the internal temperature measured.

    If the temperature goes up and the fans are not speed up to compensate, you probably have a hardware problem.

    If the Mac becomes too hot, it will make an uncontrolled emergency power off.

    EDIT: Replacing the battery is a completely separable question not related to temperature. Is the Samsung phone batteries that catch fire, not Mac.

  • HP ENVY 17-j101ex - replace the SSD HARD drive

    Hello

    I have HP ENVY 17-j101ex, with the standard configuration: 2 x 1 TB drive HARD 5400 RPM SATA. I want to buy 1 SSD drive and replace the first (boot) hard disk drive. I don't know if it works or not.

    I want to buy a SSD Samsung 840 EVO 250 GB SATA III (MZ-7TE250BW), 2.5 ", dimensions: 100 x 69 x 7 mm

    I have to: 1 x 1 TB HARD drive (as a secondary drive) + 1 x 250 GB SSD SATA3 (as your startup with system disk)

    Is this ok?

    I found some info, that:

    Supports a 6.35 cm (2.5 in) 300 GB or 160 GB SSD (SSD) drive in 7, 0 - mm (. 28 - in.) thick

    Supports 6.35 cm (2.5 in) hard disks to 12.7 mm (. 50-in) and a height of 9.5 mm (. 37 - in)

    Is it not this Samsung SSD too big?

    I also found information on envy 17 series, which:

    Supports the following single hard drive/solid-state drive combination configurations:
    ● 1-TB, 5400-rpm, 12.7-mm hard drive × 1 + 300-GB solid-state drive
    

    and also:

    NOTE: Supports RAID-0 as default for all dual hard drive/solid-state drive combination configurations.
    

    So, first of all should I disable RAID-0?

    Thank you for your help and sorry for my English

    In fact, I have the same model laptop PC series. You will have no problem replacing the mechanical main hard drive with an SSD. The Evo to Samsung 250 Gig is a very good choice. I suggest you get cloning software, put the SSD in the second slot, start from cloning software and copy (clone) the startup disk for the SSD. You'll slim down the contenst of the diskette of starting less than 250 concerts to achieve, but you can store files off to the second disk of 1 TB in the process. There are other ways to do this post if you have any questions.

    Here is a video showing how to install the hard drive.

    https://www.YouTube.com/watch?v=wx3dMGXrGCc

    RAID-0 is supported, but you wouldn't want as a second hard drive with an SSD. If your readers are appearing as volumes of letters separated in 'the PC' or 'Computer' then RAID-0 does not exist and you shouldn't have to do any disorder in the BIOS.

    If it's 'the Answer' please click on 'Accept as Solution' to help others find it.

  • Pavilion dv6 2170 clock problem after replacing the CMOS battery

    Hello world. Sorry for my bad likely English

    OK, so the problem started since I changed my laptop CMOS battery. and to be honest it wasn't whit any problem the clock when I replaced it but I if this may be the cause of another problem that later I figuered what the problem was because of the RAM.

    in any case, I changed the Rams and this problem has been resolved. I just set the clock of the BIOS and rebooted the system. After awhile I figuered that windows clock is not fair. I restarted again and saw the BIOS clock. It has been reset for 2009! even when the laptop battery and power supply are attached the BIOS and windows continues to change clock! I even changed my windows and I replaced the CMOS battery with the former, but nothing helped. It seems really strange, but I don't think it's maybe a hardware problem there a driver or something for the CMOS battery... need your help! Thank you!

    You mentioned that the BIOS has been reset for 2009? This means that there is a problem with the current or any leak and the BIOS has been "reset" back at the root of the plant. I'm afraid you have shorted something when you changed the battery not be grounded.

    Worst case is that there is physical damage to your motherboard and there is nothing you can do about it, probably broken a capacitor - who cannot hold a charge to prevent the reset of the BIOS clock.

    However, you can try this.

    Completely, unplug your computer, remove the laptop battery, etc... Then browse 'Guide' your computer for the "hard physical reset" for your CMOS. I don't know what it's like on a laptop, I only did it on desktop with riders. Be sure to follow the directions precisely.

    -Make sure you are properly grounded. touch the metal parts that is grouned before touching anything on your computer.
    -the hard reset should be done for at least 30 seconds, this ensures that the power is completely served the system. Then you can set this back.

    Try this a couple of times, first without removing the CMOS battery and 2nd time after remove CMOS battery and placing it in.

    Good luck.

    BTW, you can also try running without your new memories (if there is more than 1 stick, try them separately). In fact, I would probably try first before doing a hard reset CMOS. The reason why I didn't say earlier, it's because I have assumed that you already tried this.

  • Replace the file name of the path

    EDIT:

    I'm building an array of strings into a path, but he eventually be not properly formatted.  Perhaps it is a matter of "scan code" with the back-slash?

    Is it possible to do better/correct?  I just want to change the file to an already existing path name.

    For example:

    c:\Desktop\Folder\File1.csv

    becomes

    c:\Desktop\Folder\FileName.csv

    My 'spreadsheet chain' is simply a way of existing in the same folder of destination file path to the string .

    I break the old path (a string) in a table separated by the slash.  Can I replace the last element of the array (the name of the file).  Can I make a new table and convert it to a path.  Although it seems correct, LabVIEW generates an error with this path by saying: there is no.

    Looking to do?

    added the path = c;\desktop\folder\filename.csv

Maybe you are looking for