Quote modification value chain "to double quote & quot;

I create a list with the different codes of law within the single quotes as follows
< cfset corlist = "'1100', ' 1200' ', ' 1300 '", ' 1700 ' ", ' 1800 '", ' 1950 ', '7001' ">" "
When I do an output
for
< cfoutput > AND idbillcode in (#corlist #) < / cfoutput >

Get the values as follows
AND idbillcode IN ('1100', ' 1200' ", ' 1300 '", ' 1700 ' ", ' 1800 '", ' 1950 ' ", ' 7001 ')


However when I put the same string in a cfquery apostrophes get replaced by double quotes as follows

AND idbillcode IN ("1100", "1200", "1300", "1700", "1800", "1950", "7001") that generates an error.

Anyone have clues.

Thank you.

I found the answer PreserveSingleQuotes. Thank you

Tags: ColdFusion

Similar Questions

  • Is it possible to know if a control digiatal is an integer or a value of type double?

    When I have the reference to a digital control, how can I find the representation of its value (for example double, Integer32,...)?

    C:\Program Files (x 86) \National Instruments\LabVIEW 2015\vi.lib\Utility\Data Type\Get Type Information.vi

  • Extract amt value chain

    Hello

    I need to extract the amount of chain. I have achieved this goal by using substr and replace the function. I want to use regular expressions. can you please help me to use regular expressions.

    SQL > with b as (select "MS % 3 %% 1492% ' union str double all the")

    2. Select 'CC%%%3%%1827.00%%%CA%%' from dual union all

    3 select "MS % 5% ' Union double all the»

    4 Select "CA 3 1893.96% ' Union double all the"

    5 Select ' CC 3 12994.46 AX 37601 * 1021% ' of the double

    6)

    7 select * b

    8.

    STR

    ---------------------------------------------------------------------

    MS % 3 %% 1492%.

    CC%%%3%%1827.00%%%CA%%

    MS%%%%%%%%5%%%%%%%%%%%%%%%%%%

    CA 3 1893.96%.

    CC 3 12994.46 AX 37601 * 1021%.


    Expected results:


    AMT

    --------

    1492

    1827.00

    Null value

    1893.96

    12994.46


    Concerning

    Ravikumar.A

    babaravi wrote:

    Thanks for your help. It works very well. with the exception of one of the scenarios.

    SQL > ed

    A written file afiedt.buf

    1 with b as (select "MS % 3 %% 1492% 899% ' union str double all the")

    2. Select 'CC%%%3%%1827.00%%%CA%%' from dual union all

    3 select "MS % 5% ' Union double all the»

    4 Select "CA 3 1893.96% ' Union double all the"

    5 Select ' CC 3 12994.46 AX 37601 * 1021% ' Union double all the

    6 select ' CC 3 AX 37601 * 1021% ' of the double

    7)

    8 select str, REGEXP_SUBSTR (str,'\d\d+\. * \d *') amt

    9 * b

    SQL > /.

    STR                                                                   AMT

    --------------------------------------------------------------------- ------------------------------

    MS%%%%%%%%3%%1492%%%%%899%%%%                                         1492

    CC%%%3%%1827.00%%%CA%% 1827.00

    MS%%%%%%%%5%%%%%%%%%%%%%%%%%%

    CA        3  1893.96                    %%%%                          1893.96

    CC 3 12994.46 AX 37601 * 1021% 12994.46

    CC 3 AX 37601 * 1021% 37601 - this must be null because the value '3' and 'AX' is null.

    6 selected lines.

    Elapsed time: 00:00:00.03

    SQL >

    Ah, ok, probably so...

    SQL > ed
    A written file afiedt.buf

    1 with b as (select "MS % 3 %% 1492% ' union str double all the")
    2. Select 'CC%%%3%%1827.00%%%CA%%' from dual union all
    3 select "MS % 5% ' Union double all the»
    4 Select "CA 3 1893.96% ' Union double all the"


    5 Select ' CC 3 12994.46 AX 37601 * 1021% ' Union double all the
    6 select ' CC 3 AX 37601 * 1021% ' of the double
    7    )
    8  --
    9 select regexp_replace (str, ' (^ [^ 0-9] *?)) [ 0-9] + [^ A-Z] * ? ([0-9.]+).*$|.)','\2']) as val
    10 * b
    SQL > /.

    VAL
    ----------------------------------------------------------------------------------------------------------
    1492
    1827.00

    1893.96
    12994.46

    6 selected lines.

  • Convert a table to a cluster of 4 elements array values 2D 2D double precision, or a table 1 d

    Y at - it an easy way to convert a 2D cluster table (4 elements each including a Boolean value and three numbers dbl) to a table 2D or 1 d of double precision values? I need to store my data in a text file to control a robot, I'm trying.

    Thank you.

    There are 1 million different ways to do it. The best thing to do would be to leave the data exactly as it is and simply use Flatten in XML format (search the palette). It accepts virtually any type of data, including a 2D cluster table as you described. He will spit human readable (although not necessarily nice) text that you can write to a text file. Then, read you data from the file and use Unflatten of XML to do the reverse.

    Or you can use a similar model to flatten your data in a 1 d of double table which you can then unflatten.

  • value chain control event does not trigger change

    Hello

    I am trying to scan a barcode with a barcode usb HID scanner. I use a structure of the event to detect the change in the value of a control of the chain. When I scan the barcode, the chain control updates on the front panel, but the event does not fire until I left on my mouse on the front panel. can someone help? See attached vi

    Your barcodes are probably fixed length. When you get an event, check the length. If it corresponds to the length of the barcode, then process the data, otherwise wait for more characters.  This can be treated very quickly in the case of the event.

    Lynn

  • Can I pass a string value to a double digital display?

    I do a test sequence and save each test datas. When I get around one of the tests, I need the string value "BP" to be saved (in double digital indicator) for this particular criterion. Is there a possible way to do it?

    Maybe just use "NaN" instead of "BP". You can store a NaN in the digital indicator.

  • simple question to function test of value chain

    Hey guys,.

    I m just started using teststand.

    My simple question is related to the function "test string value '. What is the difference between the "type of comparison' CASE SENSITIVE and IGNORE CASE? From my point of view are not really meaningful names.

    To avoid simple and stupid questions like that, I tried to use the internal helper function. I'm wrong when I say that the help features are not as good as in labView? I couldn t find any answer to my question... hmmm... How other people handle this situation? (outside of just trying?)

    Thanks for your help

    Hello

    Case SENSITIVE: it will fail if you compare "HELLO" with 'Hello' or 'A' with 'a '.

    IGNORE CASE: this will pass if you compare "HELLO" with 'Hello' or 'A' with 'a '.

    Hope that explains

    Jürgen

  • Routers chained E900 - double NAT

    I understand double and triple NAT is unstable.

    How to configure routers to solve this problem?  DMZ?  port forwarding?

    Here is my configuration:

    comcast modem--->---> router Netgear router E900

    I want to divide the internet access from a single IP DHCP of Comcast to two separate networks; business network the router E900 and comments for Netgear router network.

    Please keep in mind:

    -I want the E900 and Netgear network is completely separate and invisble to the other for security issues.

    -i want hosts to connect to networks with no special configuration required then I would like if possible that DHCP on both routers,

    thx for any help

    You certainly don't want to put the E900 in bridged mode. Put the E900 in to fill the mode would not meet your security requirements.

    Your first statement in your first post "I understand the double and triple NAT is unstable" is an incorrect statement. I have currently triple a NAT configuration and there is nothing unstable at all. The only time where people suffer from instability and problems is when they don't cascade NAT routers correctly. In other words, if you try to cascade NAT routers and put them both on the same local network segment... you will most likely problems.

    Why you want to work around NAT?

    It seems you have the routers cascade properly, so there is no need to bypass the NAT.

    If you post the brand and model of your modem, someone here on the forum can tell you if it's a NAT router or a simple dumb modem.

  • How to convert the Editfield value chain

    Greetings

    Please help me to convert the editfield in sting.

    with the help of toString (), it does not convert it to a string.

    Help, please

    concerning

    Anthony singh

    arkadyz is located...

    but you must put this line in an event thread... because you enter the value in an editfield dynamically (at runtime) he must go and look after that the value has been added...

    As you can use a button... When you click on it, then the value is extracted from the help:

    final String text = SmsField.getText ();

    and your dialog box appears...

  • The analysis of digital text in digital value chain

    If I have the number '5' as a text layer, how can I get another layer of text to read that number and then add another number?

    It gives me '56 '. I want to "11".

    Temp = thisComp.layer("5").text.sourceText.value;

    (temp + 6)

    It should work.

    txt = thisComp.layer("5").text.sourceText;

    Numbers = 3;

    n = parseInt (txt) + 6;

    s = n.toString ();

    While (s.length< numdigits)="" s="0" +="">

    Dan

  • HTTPService and value chain.

    We experience an unexpected problem in our application. Is one of the tags returned by a HTTPService:

    < lot_code > 7E00024 < / lot_code >

    And bind us it to a column of data using grid:

    < mx:DataGridColumn headerText = "Number of batch" dataField = "lot_code" / >

    But the value displayed is:

    7F + 24

    If Flex is automatically converted to a number and showing in exponential format. How to set the XML to get us a value 'string' or 'text '?

    Thanks in advance.

    Hello
    How do you get your data?
    as E4X, XML, OBJECT?

    This is important, because the instance if it comes, as xml, you can use a tostring() to get a knot like a rope, archived documentation on the XML data on adobe livedocs

  • Limit the Total number of characters between double Quotes using Oracle 11 g PL/SQL

    Hello

    I need a way to apply a limit of 32 substring for each group of data inside double quotes, with Oracle 11 g PL/SQL.

    Essentially using the following example string that much for me, I have no control of how this string is built:

    str := "AAAAAAA BBBBBBB CCCCCCC DDDDDD1","AAAAAAA BBBBBBB CCCCCCC DDDD",”QWERTY”,”N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1”’;

    I need to go through each group of values between each double quote, for example ("QWERTY") and apply a substring of 32 to each group found.

    So, using the example above of the chain, it's as if I need to do the following:

    str := "substr(‘AAAAAAA BBBBBBB CCCCCCC DDDDDD1’,1,32)","substr(‘AAAAAAA BBBBBBB CCCCCCC DDDD’,1,32)",”substr(‘QWERTY’,1,32)”,”substr(‘N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1’,1,32)”’;

    So in the end, my final result for the str would be composed of four groups where the length of each grouping is less than or equal to 32.

    Any help would be great.

    Thank you.

    Try this (replace with your actual table):

    with the temp as

    (

    SELECT substr (REGEXP_SUBSTR (str,'[^,] +', 1, LEVEL) 1, 32) r

    OF THE TEST

    connect IN REGEXP_SUBSTR(str, '[^,]+', 1, LEVEL) IS NOT NULL

    )

    Select replace (listagg (r, '"," ') in the Group (order by null),' ' "','" ' ")

    temp

    output:

    "VIEN BBBBBBB CASTILLO DDDD", "VIEN BBBBBBB CASTILLO DDDDDD1", "N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1N", "QWERTY".

  • Double quotes in FILE SET LINE UTL

    My program writes the data in the CSV file in function below.

    Varial buffer is assigned

    buffer: = A | ','|| B;

    And, the output file contains, lets say, as below

    Apple, boy

    Now let's say that this requirement is to write the value b in double quote,

    Apple, 'Boy '.

    How do I get there?

    Thank you in advance,

    Srini

    Try the below

    buffer: = A | ','|| CHR (34) | B | CHR (34);

  • Round the question in Double chain

    Hi all

    I am facing a weird problem in rounded to a value of type double. I thought that LabVIEW always rounds up this rule when the digit is truncated is 5 - round to the nearest even integer number offshore

    When I round up to two points of accuracy, I get results.

    489.335-> 489.33

    489.355-> 489.36

    Can someone tell me how rounding works in the above cases? Please find the sample VI (2010) attached, if you want to play with him.

    Thank you

    Knockaert


  • cfqueryparam and pad causing ' double to "

    Has anyone else seen this problem with CFMX (6,1,0,63958).

    I have some queries running on a site with the version of CF listed above, where we had statements trim() around a form field which was then used as the value of a tag cfqueryparam in a query to update, and the ' escaped to ". There are even cases of "going to-" and I think that a few ' going to-'.

    We have developed this in a box of CFMX (6,1,0,83762) where it didn't happen at all.

    I have same output that variable before and after the update and value was the original number of citations, but the query param value had always doubled.

    It is the section of code that I want to talk.

    communityShortDesc = < cfqueryparam cfsqltype = "cf_sql_longvarchar" value = "#trim (attributes.communityShortDesc) #" >.

    Set out above would result in the ' to double, but just by removing the trim as below, the ' would not be double.

    communityShortDesc = < cfqueryparam cfsqltype = "cf_sql_longvarchar" value = "#attributes.communityShortDesc #" >.

    I think the only option I have is to cross and find all the toppings in the instructions for insertion/development to date and delete then. I'm just curious if anyone has any other ideas for this.

    Thank you

    Sean

    UM. Let me you imagine this.

    It worked directly in the CFMX 6.1 update.

    He has not worked in the oldest CFMX 6.1.

    "The tag cfqueryparam doubled single quotes (') when the strings were manipulated in the attributes of the tag." comes the _FIRST_ mentioned in CFMX 6.1 updater fix-list the Macromedia.

    ... sometimes it is so, so hard to stay calm and polite, what... aww forget it. * rolleyes *.

    ;-)

Maybe you are looking for

  • Comparison of 50 t-A494 and S55T A5277 satellites

    I'm going to buy a Toshiba laptop and you want to compare S50T-A494 S55T A5277.Can someone guide me in this regard? Thank you in advance.

  • Powerline 500 with Samsung Galaxy Tabe E

    Hello I have a 500 Powerline with XWNB5201 access point Wifi. I installed as in the intstructions and although the connection Wifi Netgear-Ext2 works very well with my Windows 10 laptop but does not connect with my Samsung Galaxy Tab E. I tried every

  • T450S does not start, button / stop flashes 3 times

    I have a T450S which is a few months. It worked fine until the other day when it wouldn't turn on. When I push the power button, the Green LED flashes three times. Then, the LEDs on the keys F1, F4 and Fn comes on for a few seconds and turns off. Her

  • Problem with my adapter connected to the computer laptop, perfect if not connected

    Hi, its my first post here, had my laptop for about 2 weeks Whenever I connect my laptop to the power adapter AC that my screen begins to glitch, I see the blurred lines, looks all screwed upward and also it freezes and goes to normal and I see a pop

  • Solution Center suddenly does not work

    I have an OMNI 220 all in one and a printer D110a Touchsmart.  I've used several times solutions Center to scan documents.  Suddenly when I try to open the Solution Center it tells me that my device installation is not complete.  I have reloaded the