frame the values in quotes

Hello

I want to include the values separated by commas in quotations

WITH STR AS (SELECT ' GPCD, USP, OCMG, WMGF, WNID, WNEF, INY, INMS, IPAD, ITX, NIJ, CFMD, WHO, WTO, OCTD, MY, XLHD, SAL, XOK XMIR' MODEL OF DOUBLE)

SELECT THE MODEL OF STR

I want to ouput as

"GPCD", "USP", "OCMG", "WMGF"...

Thanks for your help.

Hello

1723545 wrote:

Hello

I want to include the values separated by commas in quotations

WITH STR AS (SELECT ' GPCD, USP, OCMG, WMGF, WNID, WNEF, INY, INMS, IPAD, ITX, NIJ, CFMD, WHO, WTO, OCTD, MY, XLHD, SAL, XOK XMIR' MODEL OF DOUBLE)

SELECT THE MODEL OF STR

I want to ouput as

"GPCD", "USP", "OCMG", "WMGF"...

Thanks for your help.

So, as far as the entrance has a comma, you want 3 characters: single quote, comma, and single quotation mark.

In addition, you want to add single quotes at the beginning and end of the string.

Here's a way to do this:

SELECT "' | REPLACE (comp

, ','

, ''','''

)

|| "' AS new_comp

STR

;

Remember, new_comp is always a single string that can contain commas and single quotes.  This is not the same as a list separated by commas of several channels, which each is placed in single quotes.

Tags: Database

Similar Questions

  • the value in quotes.

            select  'account_MOT = ''5DC'''  from dual;
            
    I want only 5DC as my output. It is only the value in quotes, I need.

    Pls help

    Dear oraclehema!

    It is not very clear what you demand, so the only thing I can do is guess. You are looking for a method detach an attribute in its attribute value? So what of this:

    WITH S AS
    ( SELECT 'account_MOT = ''5DC''' as col1 FROM dual)
    SELECT SUBSTR(REGEXP_SUBSTR(col1, '=.*'), 4,3)
    FROM   s
    /
    

    Yours sincerely

    Florian W.

  • RegExp to ignore the values in quotes

    I have a CSV file that is imported by the users. I am cast on a chain and split into an array using the line endpoint. The question is, inside the quotes can be a line ending that I should ignore.

    The regular expression that I use to split the string is...

    private var _newLine:RegExp = / [\r]| [\n]/;

    Any ideas on how to ignore newlines inside quotes?

    or...

    Find the newlines inside quotes to use an alternative method

    Replace the string (myCSV) (_yourForumRegExp, "");

    An example: this will remove multiple occurrences of \n or \r (or both) in a quotation:

    while(text.match(/".*[\r\n].*"/sg).length){
       text = text.replace(/(".*)([\r\n])(.*")/sg, "$1$3");
    }
    

    --

    Kenneth Kawamoto

    http://www.materiaprima.co.UK/

  • Set the value of the parameter in the call sequence by programming

    Is there a way to set the value of the parameters of a call sequence with a vi with the context of the sequence in the order which is called? Cases not the same subseqence with a vi in the mainsequence maybe?

    In your VI, I think you should be able to set the value of Step.TS.SData.ActualArgs.paranumber.Expr to the value of the setting that you want. (This property is visible in the Variables pane, only if you have configured the Options of Station to display hidden properties). Note that the purpose of the step should refer to the sequence of your call step.  Also, remember that the property represents an expression, so if you want to pass the value 33, you must enclose the value in quotes ("33").

    Jeff

  • How to retrieve the values of character without using single quotes

    Hi all

    How to retrieve the values of character without the use of single quotes. Its Possible in Oracle SQL

    Please answer me...

    For example

    Is actual query-> Select * from employees where name like in("SCOTT", "JAMES", "ALBERT",...);

    I want to--> Select * from employees where name like(SCOTT, JAMES, ALBERT...); -without the use of single quotes.

    Why I need this application, I need to retrieve the records more than 200 employees in a select statement by using name in where clause.

    shagarmahabubjan wrote:

    Hi all

    How to retrieve the values of character without the use of single quotes. Its Possible in Oracle SQL

    Please answer me...

    For example

    Actual query is---> Select * from employees where name like in("SCOTT", "JAMES", "ALBERT",...);

    I want to---> Select * from employees where name like(SCOTT, JAMES, ALBERT...); -without the use of single quotes.

    Why I need this application, I need to retrieve the records more than 200 employees in a select statement by using name in where clause.

    In short... you can't.  The channels are channels, and SQL and PL languages dictate that the string literals are provided within single quotes.

    I don't see how trying to retrieve more than 200 records of employees in the select statement means that you must get rid of the quotes.

    Be clear in what you ask: Re: 2. How can I ask a question on the forums?

    and take note of the FAQ link davidp provided the solution "variable IN the list.

  • cfformitem type = & quot; script & quot; : how to set the value of the hidden field?

    I have a simple test form that contains a cftree and some fields of seizure/hidden. Whenever a tree node is selected, I want to change the values of the fields of entry/hidden to some node is selected. Pretty simple, but I can not understand how to change the values of the hidden fields.

    Load the form, select "ItemA" and click on submit. Do not change the values of the hidden form fields. They are always "not defined". What is the correct syntax to change the value of the hidden field?


    The correct syntax is

    myForm.theID = 'theID = "+ valueString;

    Ken

  • The value & quot; 115,223.39 & quot; cannot be converted to a number

    I have this value "115,223.39" in my database when he tries to pull this data I get this message.

    The value '115,223.39' cannot be converted to number... Any help on this


    Thanks 4 the help guys, but all I had to do was add that replace the statement inside my loop... It has been being not converted beacause it was out of the loop... dang... Thanks 4 the help... This is the correct code snippet...

  • JavaScript Command Window.getComputedStyle (document.body, ': after') .getPropertyValue ('content') returns the content with quotes

    When I use in my css:
    body: after {}
    content: "mobile";
    display: none;
    }
    And by controlling javascript with the command:
    size var = window.getComputedStyle (document.body, ': after') .getPropertyValue ('content');

    I get in firefox (mac v 23.0.1) returns the '' mobile' ' string with double quotes as return and, therefore, checking if size == 'mobile' returns false. In safari, the value returned 'mobile' without the quotes. How is it?

    What you get is a string that represents what you specified in the content.

    A content specification can include other things like a counter: body: after {content: "subjects []" counter (topics) "]" ;}}

    size = window.getComputedStyle(document.body,_':after').content would give: 'subjects []' counter (topics) "].

    If you need test the exact text of the contents: size == ' 'mobile "";

  • Cannot change the value of mousewheel scroll

    After you have reinstalled windows and all I had on my old desktop, I seem to be unable to change my amount of scrolling the mouse on firefox. I looked through all the troubleshooting questions that have already been posted, and all users have responded that I had to access about: config and change the value of mousewheel.withnokey.numlines.

    However, when you access everything: config, I discovered that not only I don't the integer specified, I don't have any integer with a preferably name that contains "withnokey", so I tried to add it in me, but not to use. Currently my parchment done on lines 6 and 7 and I would like to go down to about 3.

    Hello, Skarlath, the scrolling behavior has been overhauled in firefox 17 (see for reference https://wiki.mozilla.org/Gecko:Mouse_Wheel_Scrollingtechnical information) - the old setting longer reverberate.

    It must still be possible to set a different frame rate. You can enter about: config in the firefox address bar (confirm the message information where it appears), search preferences starting with mousewheel.default.delta_multiplier_ ..., you can double-click on these parameters and assign a different value to - then a restart of firefox is required for the changed settings is taken into account.

  • The value FPS using NOR-IMAQ with a GigE camera programmatically?

    Hi all

    I'm (slowly) learning how LabVIEW plays well with the cameras, GigE, that I just bought.

    At this point, I'm trying to understand how to programmatically set the value of fps for the camera.  I have been using the examples NOR-IMAQdx to control the cameras so far, but I am open to trying anything.  Someone at - it a good example of how I can change the frame rate "on the fly?

    My next task will be to find a way to change the size of the image on the screen programmatically, so if anyone has any ideas for me on this path there, I'd be pleased them too well.

    Thank you very much

    FB

    I thought about it:

    1. use the vi IMAQdx open camera to open the camera

    2 use the "List attributes" in the palette of NOR-IMAQdx to see all available attributes

    3 using the step 2, above, I could find the attribute, the attribute "AcquisitionFrameRateAbs".

    4. create a node in the output of the open unit VI property, choose 'Attributes of the camera,' select "Attribute Active."

    5. set the property node "change all to write."

    6. connect a constant string of 'AcquisitionFrameRateAbs' attributeinto the property node value

    7. create another node in property 'Attributes of the camera', this time by selecting 'Value' and affecting the type DBL

    8. change all to write

    9 create a digital control for cadence

    10. connect the digital control to the property node 'ValueDBL '.

    Presto!  You are finished.

  • My eos 500 d take pictures to less than the value of the manual and HAVE the value servo... Help!

    Hi all. my camera will not take photos more in automatic mode or manual mode unless I have it HAVE servo value. It will be always filming and take pictures of in this mode. the problem is the same with all lenses. Anyone have any ideas?

    Assuming that you test in Nice bright lighting, it is probably a failure of the lens, but there's a little more tests needed to be sure.  When the appliance is in mode "One Shot" (not in "AI Servo" mode) the camera also uses what is called the "Update priority".  This means that when you press the shutter button to take the picture, the 'priority' is on the guarantee that the camera was focused BEFORE it will allow the camera taking the picture.  If you pass in "AI Servo" mode, the camera switches to what is called the "release priority" (most popular with sports and action).  Priority of release explains that when you press the shutter button... the most important thing is that the camera taking the picture "right now" (if the camera had time to focus or not).

    Once again, you must have enough light to test (outside on a day... that's fine).  Don't test it in dark situations - especially on the subjects of low contrast.

    Please turn on the camcorder in "live view" mode, with the target set to autofocus (AF/MF switch on the position of the AF).

    It to focus and take a picture?

    The reason I ask is because your camera has in fact two independent autofocus systems.  He uses a normal mode (looking in the viewfinder to frame the shot) and the other in "liveview" mode (when using the LCD screen on the back to the chassis so.).

    It is extremely unlikely that two development systems can fail (because they are independent of each other.  The camera uses one or the other, never both at the same time.)  If the camera cannot focus with ONE of these two methods point, then the problem is more likely to be objective.

    The camera sends signals to the intermediate target electronic contacts that you see at the back of the lens.  But the engines are actually inside the lens itself.  If the lens electronics or engine does not then the lens will not focus, and since you are in 'One Shot' with "Priority Focus" mode, the camera will refuse to take the picture because it cannot lock the focus.  BTW... If you pass the lens to position "MF", the camera will still be the shot because the camera is no longer trying to focus.

    If you have more than one objective... try using a different lens.

  • Is there an easy way to filter a 2D table based on the values in two fields?

    Y at - it an easy way to filter a 2D table based on the values of one of the fields. In my attached VI the output array has the following format:

    Ident Frame Type bytes TimeStamp data

    10:57:07.621 3AD00016 POUVEZ 8 0000000000000000 data frame

    10:57:07.622 3AD00017 CAN data frame 8 000005E000000000

    10:57:07.624 3AD00018 POUVEZ 8 0000000003300000 data frame

    10:57:07.625 2DC00000 POUVEZ 8 0000000000000000 data frame

    10:57:07.626 3AD00019 POUVEZ 4 0000030000000000 data frame

    I would like to delete all lines that do not have an "Ident" between the values of 3AD00000 and 3AD0001E. So for the data above the fourth row would be removed. The only way I can see to do this is to form a 1 d table. Is there a better approach?

    Thank you.

    Hi chuck72352,

    After you've sorted your data, you can use the function InRange. Combined with a "search in 1 table D", you get the range you really want.

    Mike

  • How to get the values of the table of the ADF to bean class?

    Hi all

    My 11.1.1.6 Jdev

    Here I do not use BC ADF in my project.  I'll put values in the ADF table with bean.

    In the table, I put a checkbox. When I selected (Checkbox) a few rows in table and submit. In the submit method, I want to get all the values of line checkbox selected in my bean class.

    How can I get the values. ???

    Here my table UI code

    < af:table var = "row" rowBandingInterval = "0" id = "t1" value = "#{pageFlowScope.BinderSolutionsBean.uiBinderProperties} '"

    styleClass = "AFStretchWidth" emptyText = "no record found".

    Binding = "#{pageFlowScope.BinderSolutionsBean.binderTree}" >

    < af:column sortable = "false" headerText = "Script ID" id = 'c4' >

    < af:panelGroupLayout id = "pgl4" >

    < af:selectBooleanCheckbox id = 'sbc1' > < / af:selectBooleanCheckbox >

    < af:spacer width = "5" / >

    < af:outputText value = "#{row.scenarioId}" id = "ot5" / > "

    < / af:panelGroupLayout >

    < / af:column >

    < af:column sortable = "false" headerText = "Quote ID" id = "c1" >

    < af:outputText value = "#{row.quoteId}" id = "ot4" / > "

    < / af:column >

    < af:column sortable = "false" headerText = "NASP ID" id = "c2" >

    < af:outputText value = "#{row.naspId}" id = "ot2" / > "

    < / af:column >

    < af:column sortable = "false" headerText = "GCH ID" id = 'c3' >

    < af:outputText value = "#{row.gchId}" id = "ot3" / > "

    < / af:column >

    < af:column id = "c6" headerText = "Term" >

    < af:outputText value = "#{row.term}" id = "ot9" / > "

    < / af:column >

    < af:column sortable = "false" headerText = "Status" id = "c5" >

    < af:outputText value = "#{row.status}" id = "ot6" / > "

    < / af:column >

    < / af:table >

    follow some above recommendation such as the creation of additional attribute. You will also need the key in your collection, while making the data for your chart.

    You must write a custom selectionListener. On valueChangeEvent of box, get the key of a line and add the line at the bean.

    Maybe it's little help for you

    https://tompeez.WordPress.com/2012/01/22/jdev-custom-SelectionListener-for-viewobjects-in-rangepaging-mode/

    How to get the selected row in a table no-bind ADF

  • Save the value of a Boolean variable

    How can I save the value of a Boolean variable, so that when I open the file, it can be with the parameters in which I left?

    I created the variable to the top of the frame:

    var audio:Boolean = true;
    

    And I added the conditions for the buttons:

    if(audio == true) {
        Sound.play();
      }
    

    But whenever I open the application preferences is reset to true, wanted to leave with this preference be saved in the case of boolean, true (enabled) or false (disabled).

    can someone help me? Please, I beg you.

    Thanks in advance!

    A sharedObject is always appropriate for a local application. The only reason to use anything else would be size of storage needs.

  • corrupted image displayed when the value horizontal elasticity 'contract '.

    Hello.

    Using forms and reports 10.1.2.3.0

    I got a report where I'm trying to show the images centered horizontally in their surroundings.

    To do this, I created an image element within the framework (a rehearsal setting, because the images are extracted from the DB), manually it centered within the frame, attached with an anchor to his surroundings and define its horizontal elasticity of 'contract' (vertical elasticity is set to "fixed"). It is actually the preferred method to do this and some threads in this forum recommend it.

    What I got in the PDF file was an image corrupted in some circumstances.

    To refine what I've created three different images (width * height)

    1. 1000 * 666

    2. 1000 * 750

    3. 1000 * 800

    load in the DB and tried to run the PDF file. You can see the result in the following screenshot:

    garbage_example.jpg

    When I put the horizontal elasticity "fixed", the image is not damaged (this is not a solution because the image is left aligned then).

    Setting the OUTPUTIMAGEFORMAT to something different than default (JPEG) has not changed anything.

    Interestingly enough the Foxit PDF Reader it shows correctly, while AdobeReader X and XI and Inkscape even show the image corrupted (not only on my PC).

    We tried with multiple images/photos, and the only ones to be displayed correctly seem to be images with a 4:3 aspect or higher report. I was not able to determine exactly to what extent this behaviour.

    Anyone have any idea what may have caused this?

    Thanks in advance

    Markus

    Found a solution that is rather surprising for me: the value of the vertical elasticity of the image of "contract".

Maybe you are looking for

  • Photosmart HP 5510: print/label with a hp Photosmart 5510 all-in-one

    I would like to label printing on dvd blank that I recorded, my question is: can I print on DVDs with this printer model?

  • Graphics problems Tecra S1

    My S1 has graphic problems. There are horizontal and vertical smooth jerk on the LCD display and the same to the external display. Could you advise me please, how can I fix?

  • Where is the option ' Save as ' for files in the cat

    Someone sent me a file that I need to save. It is not a file that will be directly opened by any application, so there is no file assocatation with her. Where is the "Save as" option that ever other app provides me with? I am running the latest Skype

  • Windows is not 'delete '.

    When I try to run this command from the command line on my Windows Vista Tablet PC, delete "c:\Users\RandyFujitsu\Music\Podcasts\Morning Edition\ * .mp3 '. I get this error message: Windows is not 'delete '. Help, please.  Thank you.

  • Grayscale on 8600

    Is it possible to print in grayscale on the 8600? I looked in the properties of the printer and that you do not see an option. I also wonder if I can print on legal paper 2 sides. I get an error message. Thank you.