CFQUERY returns always the same value

< name cfquery = "qryGetMAXID" datasource = "#Request.DSN #" >

SELECT

MAX (FLEET_CON_ID) + 1 as MaxFleetId

Of

CONFIGURATION

< / cfquery >

< cfset intFLEET_CON_ID = #qryGetMAXID.MaxFleetId #/ >

< name cfquery = "qryAddOperator" datasource = "" #Request.DSN # "result = 'test' >"

INSERT INTO

CONFIGURATION

(FLEET_CON_ID,

COL2,

COL3,

COL4)

VALUES

(#intFLEET_CON_ID #,)

"ADD OPERATOR."

"#strCode, #

("#strName #")

< / cfquery >

the qryGETMAXID query always returns the same value as 18703. I inserted a few values in the database directly. the query should return 18705. When I run the same query in SQL Developer, it returns the correct value. I've not cached the query.

Please help me.

Thanks in advance

Dan and Wolfshade,

Thanks for the problem.

I found the problem, then that I insert into the database, I didn't do it. He was thus the same value.

Sorry...

Tags: ColdFusion

Similar Questions

  • Satellite P300-156 - and the button Return give the same values

    Hello

    I have a satellite P300-156, and it has a numeric keypad.
    I have problems because the Enter key and the Return key give the same values. I believe that it is incorrect.
    Can anyone help.

    Key on the numeric keypad should give an input it does.
    the Enter key on the main keyboard should give a carriage return value, but it gives an input value.

    Usually this does not cause a problem, but with software like photo shop that makes the distinction between a carriage return and a hard fall it does not work.

    Can someone help me please

    Thank you

    Hello

    To my eyes the entry and return keys are the same keys that provides the same functionality.
    I really put t know why you believe that there is something not right

    By the way; Check if you are using the latest version of the BIOS!

  • How to set the initial value of the same value as the Page loading of SelectOneMenu

    Hello

    I noticed that in my value = "#{bean.selectedItem page}" of selectonemenu is always null when loading the page and because of that there is a difference in the initial value and the value sent as valuechangelistener is shot because of this difference, I don't want to happen. "

    I call the method to load the values into selectonemenu in the constructor of my bean.

    How can I make sure that the initial value is always the same as the value at the time of page load so that valuechangelistener would not fire unless the user changes the options in selectonemenu. Because of this problem I am facing a lot of issues like valuechangelistener is going to get fired.

    Any help is much appreciated.

    Thank you

    Yes, you will need to find a way to set the value before the creation of the part of the view. Generally, there are two ways. There are at least two ways, I tend to use:

    (1) loading deferred; you would get a Get accessor like this method:

    public String getValue(){
      if(value == null){
        // code here to get value from wherever
      }
    
      return value;
    }
    

    (2) initialize properties in a method annotated with @PostConstruct in your backing bean

    @PostConstruct
    public void initialize(){
      value = whatever;
    }
    

    Hope that helps you. If this isn't the case, so I totally misunderstood you and you try to explain more clearly what your problem is.

  • The strength of two cells of different sheets of the same value

    Hello world

    I have a spreadsheet with multiple sheets, I want to add some features to.

    At the present time, I have a cell that refers to a cell in a different sheet, so if I changed the value of the cell on sheet 2, it will update on sheet 1. But I had to update the cell directly on sheet 1, it would not be updated on sheet 2.

    I want to have it set up so that if I changed the value to 1 or 2 of the worksheet, the cell is updated in both places. AKA, it forces the two cells to be always the same, regardless of the cell is edited to make the change.

    Is this possible in number? My language is clear? Any comment is appreciated. Thanks in advance!

    -Sean

    The fundamental problem is that a cell of numbers can contain a value or a formula, but not both at the same time.  So when you enter a value in a cell, the value you enter will overwrite any formula or a value that was already there.  So I don't think that what you want to do is possible by using formulas.

    It is possible using AppleScript, but probably isn't worth it.

    Can you explain a little more why you want to do this?  There may be another way to organized the document, you don't need this.

    SG

  • inputText and ouputText does not display the same value

    Hello

    JDev 11.1.2.4

    On my page, I have an inputText and outputText bound to the same link of the attribute. The bind value is defined in a value change listener, and then the two components are updated. Say I put in 2009 for the PeriodFrom, the inputText remains empty, but the outputText shows the 2009. How is possible that the two items related to the same link does not show the same value.

    < af:inputText value = "#{bindings." PeriodFrom.inputValue}"required =" #{bindings. " PeriodFrom.hints.mandatory}.

    columns = "#{bindings." PeriodFrom.hints.displayWidth}"shortDesc =" #{bindings. " PeriodFrom.hints.tooltip}"id ="id1 ".

    autoSubmit = "true" simple = "true" >

    < f: validator binding = "#{bindings." PeriodFrom.validator} "/ >"

    < / af:inputText >

    < af:outputText value = "#{bindings." PeriodFrom.inputValue}"id ="ot3"clientComponent ="true"/ >

    Furthermore, I tried to get the RichInputText component and call a getValue on it, and the value returned is 2009. I'm completely lost.

    Thank you

    I made the fragment of page from scratch. I discovered why the update does not work. This is because the selectOneChoice is inside an af:subform. If I remove the subform, the update works correctly.

    shortDesc = "#{bindings." StdcntyCode.hints.tooltip}"id ="soc2"simple ="true"autoSubmit = 'true '.

    valueChangeListener = "#{pageFlowScope.identificationSessionEditBean.countryValueChangeListener}" > "

    columns = "#{bindings." PeriodFrom.hints.displayWidth}"shortDesc =" #{bindings. " PeriodFrom.hints.tooltip}"id ="id1 ".

    autoSubmit = "true" simple = "true" >

    columns = "#{bindings." PeriodTo.hints.displayWidth}"shortDesc =" #{bindings. " PeriodTo.hints.tooltip}"id ="id2 ".

    autoSubmit = "true" simple = "true" >

  • Only GET records that have the same values of field has the same value in field B

    Have a hard time with below, please help.

    Here's the situation:

    create table cord (identification NUMBER, CM VARCHAR2 (3), PM VARCHAR2 (2));
    insert into string values (1, '002', 'H1');
    insert into string values (2, '006', 'H1');
    insert into string values (3, '004', 'H2');
    insert into string values (4, '006', 'H2');
    insert into string values (5, '004', 'H3');
    insert into string values (6, '004', 'H3');

    I just need to select the folders which, for the SAME value of PM have the same value in CM, in example above, those are recordings with ID (5,6).

    1 and 2 fail because for them CM and PM are different for the same H1, similar on the 3 and 4.

    I don't know if this will help but records are always in 'pairs', which means that there are no cases as

    7. '004' | H4

    8. ' 006' | H4

    9. '005' | H4

    Any ideas are much appreciated.

    Thank you

    See if the following can help...

    select id,cm,pm
        from(
            select t.*
                  ,count(1) over(partition by cm,pm) cnt
                from testt t
            )
        where cnt>1;
    
  • get the index of the same values in table

    Hi guys,.

    I'm trying to get the index of array elements with the same value but it can solve mine.

    my case is:


    array1 = [1,2,3,4]; <-here are the names of the pages, always in the order of CSA (these table I used only to check the results of my work, probably will not be for you but maybe...)

    array2 = [1,1,2,2,2,3,4,4,4]; <-these numbers are random, but always in the CSA order (these are the names of pages for items in table 3)

    array3 = [a, b, g, i, f, e, c, h, d]; <-these are all the values of the elements I want to work with later. number of articles is still the same as in array2, their indexes are corresponding.

    array4 = [];

    I need to remove array3 everything, but one of each issue of array2 (as I will remove duplicates) or push to array4 an article of array3 for each number of the array array2 (as I'm going to ignore duplicates)

    don't know is my desc is clear enough, but the result I get is:

    ex. [a, g, e, c]

    above example for each number of array2 array3 items, but do not have to be first, can be second or third if etc exist, but have to be alone.

    I thought that if I get duplicate values, the index in the array array2 and delete this index in array3 will get what I want, but can not solve.

    You will appreciate all help.

    Thank you

    Try something like this:

    var array2 = [1,1,2,2,2,3,4,4,4];
    var array3 = ["a","b","g","i","f","e","c","h","d"];
    
    var tempArray = [];
    var resultArray = [];
    var n , x ;
    
    for(var n=array2.length-1;n>=0;n--)
    {
        var string = ""+array2[n];
        tempArray[string] = array3[n];
    }
    
    for(x in tempArray)
    {
        resultArray.push(tempArray[x]);
    }
    
    resultArray.reverse();
    // a,g,e,c
    

    Hope, that helps.

    Uwe

  • How can I get a CMYK or Gray scale halftone and replace it with a spot color with the same value of midtones?

    Is it possible that I can select an object or objects that have a value of mixed CMYK or Grayscale, and then select a Spot color and it will keep the same value of midtones as before?

    For example, I have an object that is C: 0 M: 0 Y: 0 k: 20 and I select Reflex Blue. What is happening is it change my object to 100% Reflex Blue. Is there a way to change to automaitically Reflex Blue 20%?

    Another example, I have 3 objects, one is 20 k: the second is 40 k: and the third is KC: 85. I want to select all the objects in three at the same time, select Yellow PANTONE and get them to change yellow PANTONE 20, 40 yellow PANTONE and PANTONE yellow 85.

    Is there a way to do it or I will always have to manually edit each element?

    Thanks for the help.

    Select the elements to recolor

    Edit > edit colors > redefine > follow my screenshots

    I love clicking this button under the entitlement, one place for everything that you color reduction settings.

    Use tinted scale. Exact will give you 100% of the color. The exact word is confusing here, this means that the color of the destination (100% of everything that the color you choose), not a version tinged scale.

    Unfortunately I do not know how to get the exact values of blacks to convert the exact values of spot color. Scale of hues will you get you get you close enough for what you need. In my example that a black 89% converts a 84% of the place, so no exact but alteast I have a range of shades, and sometimes the results are better than accurate, depends on your art.

    Here are my before and after.

  • Find the same value in different columns

    Hello

    I'm trying to figure out how I would get the same value in the same row but in different columns. For example, in the table sometimes report the name is the same as the description. I would like to find all the lines where this is the case.

    Thank you

    Name of the report
    Description
    Date
    Time
    Report 1Report 1DelalandeTTTT
    Report 2Billing reportDelalandeTTTT
    Report 3Report 3DelalandeTTTT

    Hello

    Is that what you want?

    SELECT *- or whatever the columns that you want to

    FROM table_x

    WHERE description = report_name

    ;

    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
    Explain, using specific examples, how you get these results from these data.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002

  • Need to show the same values in all jspx pages

    Hello.

    I use jdeveloper 11.1.1.5

    I had created a jspx pages such as dept.jspx and emp.jspx

    I've been using this in my jspx page
     <af:outputText value="#{bindings.return.inputValue}"
                               binding="#{pageFlowScope.backing_dept.ot1}"
                               id="ot1"/>
    The bindings.return.inputValue will return the value of the code below
        public String checkLoginCredentials1(String p_user,String p_pwd)
        {
        System.out.println(p_user + " " + p_pwd);
         ApplUsersVOImpl  vo = (ApplUsersVOImpl)this.getApplUsers1();
         /*set the bind variable value*/
        vo.setNamedWhereClauseParam("p_user",p_user.toUpperCase());
        vo.setNamedWhereClauseParam("p_pwd",p_pwd.toUpperCase());
        vo.executeQuery();
        int rowCount=vo.getEstimatedRangePageCount();
        System.out.println("rowCount="+rowCount);
        if(rowCount==0) 
        { 
           throw new JboException("Password doesn't match");
         }
           return "Welcome"+ "  " + p_user.toUpperCase();
        } 
    My scenario is that I need to display the same value in emp.jspx

    I had created a task flow frm dept.jspx to emp.jspx and emp.jspx to dept.jspx

    I tried the same XML file in my emp.jspx
    <af:outputText value="#{bindings.return.inputValue}"
                               binding="#{pageFlowScope.backing_emp.ot1}"
                               id="ot1"/>
    But while I m browsing frm emp.jspx to dept.jspx there are doesnot.,.

    This means that for the faces-config. XML (the standard JSF configuration file), there is no scope spanning application except for the scope of the session. This does not mean that you should not use extended session if you use faces - config.Xml.

    However, you have been advised to use the workflow and no faces - config.Xml.

  • return only the decimal value

    What function can I use to return only the decimal value of a formula

    (97 * 2.2) / 14 value returns 15.24

    I only want to use le.24

    Salvation is

    Use the formula - INT (formula)

    In the special case above:

    =(97*2.2)/14 - INT ((97*2.2)/14)

    You see two places to the right of the decimal separator in reason to be rounded off to the value real, in the shape of the cell to only show as two decimal places, either by setting the width of the cell close enough to force the rounding of the displayed value.

    Note that if the result is rounded (using the ROUND function) the actual value of the cell will be the rounded value. For the other two cases, the value displayed indicates only two decimal places, but the real value in the cell (and the additional calculations used by referring to this cell) is 0.242857142857144, which could lead to surprises in the results of the calculations downstream.

    Kind regards

    Barry

  • Sometimes a web page is displayed with only text and no picures. It is not always the same site and is not always the case. If I'm going to explore for the same website that always works

    Sometimes a web page is displayed with only text and no picures. It is not always the same site and is not always the case. If I'm going to explore for the same website that always works

    Hello

    Also try a Ctrl + F5 refresh. This allows to bring the content of the page again.

  • indicating no not on the latest version when you upgrade today, I have upgraded a number of times and always the same message

    window 7
    updated several times, always the same question

    Where it says that you are not on the latest version? You can attach a screenshot?

    If http://www.google.com/firefox is the page telling you this, it is not true that Google is not maintain this page. Change your home page about: Welcome to the place.

  • My iPhone 5 s a problem that the accusation itself decreases without using the phone, I changed the battery it is always the same and I put it in airplane mode it's always the same problem how to solve this help please?

    problem iPhone 5s load is reduced to

    My iPhone 5 s a problem that the accusation itself decreases without using the phone, I changed the battery it is always the same and I put it in airplane mode it's always the same problem how to solve this help please?

    Please help me anyone

  • I was using my MacBook today and it crashed and the dock turned silv, I restarted the mac and it was always the same, then I loaded the disk utility and checked the disk and it says disk is fine. It flashes inconsistently gray and the dock turned

    I was using my MacBook today and it crashed and the dock turned silver, I restarted the mac and it was always the same, then I loaded the disk utility and checked the disk and it says disk is fine. It flashes inconsistently gray and the dock has transformed money! I tried to restore Mac OS and then also the same!
    OS El Capitan

    This can help:

    Reboot safe mode (it is a slow process):

    -stop of the mac

    -Start up the mac in shift, press and hold until you see appear it to progress bar, so you can let go

    -When everything started, connect

    -Once connected, stop the mac once again, nothing else is necessary.

    -restart normally.

    Lex

    PS: This clears all system caches.

Maybe you are looking for

  • 6 s iPhone doesn't have a fingerprint

    IPhone 6 s rose gold memory: 64g IMEI: *. Call id: *. version: 9.3.2 questions: I do a update version 9.3.2,and after update 9.3.2 finger print me directly to the exit, I do it for assets, read unable ID failed to complete the button Setup. Please go

  • How can I Log In to account in second Partition?

    On my Windows XP PRO, I have a side for the journal of my wife with a password that works very well. However, on the other side where I suppose that is to connect to be asked a password. I've never set up a password on my side of the partition. So, h

  • External Flash

    I have a Canon EOS T3i and shoot in automatic mode.  My indoor photos appear to be yellowish.  Would an external flash and if so what model

  • The upgrade of Intel processors

    I have a HP Touchsmart want Ultrabook 4, and I'm interested in upgrading my Intel Core i5 processor to the fourth generation (from the third generation). It is even possible, and if this is the case, how can I do to upgrade? I only want to upgrade to

  • Exception: java.lang.nullpointerexception eception blackBerry smartphones... Help!

    I get the following message at the start when I turn on my 9000. uncaught exception: java.lang.nullpointerexception Also, when I started this post I also couldn't get my missed calls! Very frustrating. Any ideas would be apprecieated.