How to store that value in the variable date?

Hi Sir,

I have a request that is


Select to_char (date ' 1900 - 01 - 01 + 1439 /(24*60), ' DD/MM/YYYY HH24:MI:ss') twice;



When I run this query, I get this value: 01/01/1900 23:59
and this value, I'm inserting in a variable that has the date data type.
Here I put like this:



v_nshiftmax: = to_char (date ' 1900 - 01 - 01 + 1439 /(24*60), "DD/MM/YYYY HH24:MI:SS");

While storing get error: not one month valid

How to store this variable?

Thank you

If you are holdiing to variable date why you switch to to_char?

Just use to_date('1900-01-01','yyyy-mm-dd') + /(24*60) 1439

Tags: Database

Similar Questions

  • How to prune a value in the variable?

    Hello

    I tried to cut the two ends of a value in a variable, can someone explain to me how that's possible?

    Here's my situation:

    value in the vairable is
    var_1: = [NAME_FIRST] [NAME_MI] [NAME_LAST];

    My mandatory release of it is

    NAME_FIRST | NAME_MI | NAME_LAST

    I'm goin' to be used in a select statement.

    Thanks in advance.

    Hello

    Do you want:

    with a as
    (
    select
      'Karl  ' NAME_FIRST
      ,'  van der    ' NAME_MI
      ,'Orange   ' NAME_LAST
    
    from
      dual
    )
    
    select
      trim(NAME_FIRST) || ' ' || trim(NAME_MI) || ' ' || trim(NAME_LAST) full_name
    
    from
      a
    ;
    FULL_NAME
    -------------------
    Karl van der Orange 
    

    Kind regards

    Peter

  • Drag the control example and how to record a value of the indicator?

    Hello world

    I want to drag the Boolean buttons on my front panel in the time of execution, how can I do?

    I remember that I have seen an example or why, it's a map on the front panel, but I don't remember the name TT someone knows?

    and the second question is how to store a value of the indicator, like the first time, you set the value and close the vi and run it again, the value will remain unless you change in the second run time?

    Thanks in advance

    Thanks to you two, are there good examples of mouse followed the structure of the event available?

    and my second question is for example: read a file using the vi, I created the first, that the value of all the positions of the button on the front panel, and the 'get file vi extension' shows the name of the file on the front panel. then I close the vi and open it again, the button positions is always there where they are, but the file name string is empty.

    How can I save the filename so indicator when I opened that vi still once, if not the other position button file selection, the filename indicator still shows the previous name?

  • Creating a variable that contains the value of the variable system (Long) Date of change

    Can someone tell me how to write a script to create a variable named DocDate, which contains the value of the variable of system (Long) Date of change? Or write a script that creates a variable named DocDate, which contains the current date? I can't find a lot of documentation on scripting ExtendScript.

    Hi Julee, when you create a user variable in the interface, you cannot include the building blocks of time in the definition. They can only be used in system like the System Date of Modification (Long) variable variables. So the question is, why not just use the variable Date of change (Long) system in your document? What is the purpose of the variable user DocDate? Let me know what you think here, and I can try to help you.

    Here are some ExtendScript resources:

    My blog: FrameAutomation.com | FrameMaker, faster and more effective to

    Debra Herman blog: Extension of FrameMaker

    The large samples of Russ Ward: FrameMaker ExtendScript samples - West Street Consulting

    -Rick

  • How to get the value of the variable in plsql

    Hi all
    I have a scenario to find the value of the variable:

    A varchar2 (10): = 'Y ';
    B varchar2 (10): = 'n';
    C varchar2 (10): = 'AB ';
    D VARCHAR2 (10);


    now my question is that how can I reach a value of A and B to D of C.

    The value of D must be equal to YN.


    Thanks in advance...

    Published by: user00001 on April 26, 2010 03:42
    d := CASE c
           WHEN 'A' THEN a;
           WHEN 'B' THEN b;
           WHEN 'AB' THEN a || b;
           ELSE NULL;
         END;
    
  • How to display the value of the variable for bottom of pl/sql

    How to display the value of the variable for bottom of pl/sql

    declare

    V_1 number: = 10;

    V_2 number: = 20;

    V_3 number: = 30;

    v_4 number: = 40;

    v_5 number: = 50;

    test varchar2 (100);

    Start

    I'm in 1.5

    loop

    test: = "v_" | I have;

    dbms_output.put_line(i||) e > ' | test);

    end loop;

    end;

    /

    How to get below output:

    1 > v_1

    2 > v_2

    3 > v_3

    4 > v_4

    5 > v_5

    But I want to output of

    1 > 10

    2 > 20

    3 > 30

    4 > 40

    5 > 50

    Hello

    You cannot reference variables as you did and get the value of the variable. Use pretty collection.

    set serveroutput on size 2000
    declare
      type      number_table is table of number;
      numbers   number_table := number_table(10, 20, 30, 40, 50);
    begin
      for i in numbers.first .. numbers.last
      loop
        dbms_output.put_line(i || '->' || numbers(i));
      end loop;
    end;
    /
    
    anonymous block completed
    1->10
    2->20
    3->30
    4->40
    5->50
    

    See the Collections of PL/SQL and Records http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/composites.htm#LNPLS005

  • How to conditionally display images based on the values of the variables

    I am building a demonstration Captivate containing a slide branching that allows the user to choose which way they want to view; Once they are done, they come back on this slide branching, and I want a check mark to display the button/path that they have already completed.

    I'm new to the use of variables and actionscript in Captivate, so I went the the documentation and the creation of variable is clear, as well as the use of conditional constructions, but I didn't know the instructions of scripts that look like they will allow me to display an image from the library when she is called in the conditional.

    Is this possible? If so, a pointer to an appropriate documentation or sample code would be greatly appreciated.

    Thank you

    Josh

    Hello

    When you insert images of the box, you click the Options tab and give the image a name that you may recognize. Then clear the Visible check box. This allows to keep hidden until you want to show it.

    However, note that even if all the image names are listed in the dialog box advanced Actions as being available for show, you will only be able to show an image if you run the fast Action of the blade where the image exists. So you will likely build a means by which you are setting up a variable to indicate that a section has been visited. Then create an action that is performed on slide enter to show the images based on the values of the variables.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • How to assign the value to the variable of project in the Jython script

    Hello

    I want to assign a value to the variable of project in the jython script.
    I tried to assign the following, but it is throwing some errors.

    < @.
    int noOfRecords = 10;
    #var1 = noOfRecords;
    @ >


    Can you please help me in this regard.

    Concerning
    Shyam

    Perfect! Good to know that!

    Please, don't forget to close the thread and assign the status to 'correct' or 'comfortable' to each response that helped you!

    Thank you

    Cezar Santos
    http://odiexeperts.com

  • How can we give the values of the variable

    Oracle Forms6i

    Hai All

    I'm generating a daily presence on the teams. In what I wrote an ifelse condition it work successfully and but he gets only 350 line on 800.

    I declared a variable and I need to know how to assign values to the variable Pls tell the steps to follow. I did it correctly, but there is a logic error in my code. Let give me a few steps to solve the problem

    My code is

    declare
    t_in varchar2 (25);
    t_out varchar2 (25);

    cursor cur_test is
    Select * from dail_att where intimate = t_in and outtime = t_out;
    -in t_in, t_out dail_att;

    Start
    loop
    go_block ('TEST_SRI');
    PREMIER_ENREGISTREMENT;

    If: bartime between 0145 and then 0630
    Update dail_att set = outtime: bartime where barcode =: bar code
    and ATTEND_DATE =: bardate-1 and intimate are zero and outtime is not null;
    elsif: bartime between 0630 and 0900 or: bartime between 1130 and 1230 or
    : bartime between 1700 and 1800 and t_in is null then
    insert into dail_att(barcode,intime,attend_date)
    values(:Barcode,:Bartime,:bardate);

    elsif: bartime > 1645 and t_in is not null and t_out is null then
    Update dail_att set = outtime: bartime where barcode =: bar code
    and ATTEND_DATE =: BARDATE and respondent are not null and outtime has the value null.

    end if;
    WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE" OR: BAR CODE IS NULL;
    NEXT_RECORD;
    END LOOP;
    forms_ddl ('commit');
    exception
    while others then
    forms_ddl ('rollback');
    message(SQLERRM|| dbms_error_Text);
    message(SQLERRM|| dbms_error_Text);
    end;


    Concerning

    Srikkanth.M

    use you make of your variables t_in and t_out I guess you want before loading with the values they have in the current row of the cursor... I tried to offer you a way to assign a value to your [another post | http://forums.oracle.com/forums/thread.jspa?threadID=1019382&tstart=15]... see if this helps

    Kind regards

    Luca

  • How Oracle to store geometry values in the columns of the table?

    How Oracle to store geometry values in the columns of the table?

    Check this box:
    [Oracle Spatial User guide | http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14255/toc.htm]

    Check other documents space here.
    [http://www.oracle.com/pls/db102/portal.portal_db?selected=7]

    Published by: Anantha R on August 20, 2009 13:43

  • How to set default to in the dashboard quickly the value of the variable presentation

    Hi all the gurus of BI.

    I'm coming out of my problem of the last two days and I'm not able to find the solution.

    Here's my problem.

    I'll have two dashboard pages in a dashboard. The two pages contains guest of dashboard. Now from the command prompt on the first page that I put a variable presentation and I want to use the value of the variable of this presentation to invite ' s value that is used in my second default dashboard page.


    I hope that I can do with the server variable or variable expression, but don't know the right way. I tried a lot with both, but not able to find a solution.

    Could help me please?

    Kind regards

    Hey, no points? Was it not the 'correct '?

  • How to run interface based on the value of the variable?

    Hi gurus!

    Is it possible to run one or the other of the interface based on the value of the variable?
    For instance I refresh the value of variable A and you want to call the interface I1 if the value is 1 or call interface I2 f value is 2.

    Thanks in advance!

    Step 1. Update the Variable
    Step 2 evaluate Variable
    Step 3. Providing OK if variable is 1 Interface 1 another DO KB not the interface 2.

    I hope this helps.

  • TestStand 2012 keeps the value of the variable

    I have a problem with TestStand 2012 that preserves the value of the variable. I have a step and its parameters in the string variable. I use the expression step as Step.Settings += "00". I run the sequence under sequential model and the problem is that Step.Settings is equal to "00" on the first run, '0000' on the second throw, '000000' on the third race and so forth, but it must rest '00' on each race. I can't find the root cause. Anyone has the same problem and can advice how to solve?

    Try to uncheck the properties of the sequence > optimize reentrant calls to this sequence to the sequence that contains the step.

  • Get the current value of the variable when reaching CNVCreateSubscriber

    I use CNVCreateSubscriber () to create a subscription read to a network Variable: whenever the value of the variable changes, the DataCallback is called and I'm able to get the new value of the variable.

    But how to get the value of the variable when a subscription is created?

    I read in the help CNVCreateBufferedSubscriber () returns this information, but I wonder if using CNVGetDataFromBuffer () in a polling loop has the same performance as the approach to DataCallback of CNVCreateSubscriber ().

    In addition, the dataStatus (CNVGetDataFromBuffer) parameter is different for different Subscribers? (that is if I have multiple subscribers, CNVStaleData is related to the specific Subscriber or is a global property of the variable)?

    CNVData data;

    CNVGetConnectionAttribute (customer, CNVMostRecentDataAttribute, &data);)

  • Save the value of the variable on rising

    Hello

    My setup is quite complicated (and does not work properly yet)... anyway, I give all of the code.

    What interests me now is to learn how to save for later use the value of the variable 'Bias' on a rising "min. . found.

    The 1st idea coming is to create another case of event for changes "min. Found" , where to save in a registry change, but the problem is "min. Found" changes fires on the edges and falling .

    Thanks in advance

    Pavel

    Pavel_47 wrote: but the problem is "min. Found" changes fires on the edges and falling .

    It's actually worse than that.  Change value Min found fires with all writing, regardless if the value has changed or not.  It's one of the dangers of the use of the Value property (signs).

    Do a Boolean search PtByPt crossing.  It's a useful for this situation VI.  It will display a TRUE with the edge that you tell him.  After that, just use a case structure and make any desired calculations in it.

Maybe you are looking for