Update Time where Date already exists

Hi,
When i am trying to update time in the column where date already exists, i tried using the update query, but time is not getting updated.
UPDATE ABC SET ATTRIBUTE=TO_DATE('09/30/2011 12:00:00 AM','MM/DD/YYYY HH:MI:SS')
Attribute = 9/30/2011 (As per current record in DB) and i want to add time also..
So when i try updating the record, i dont get any errors, but the time does not get updated, can any one help me for this issue.???
Datatype of Attribute is Varchar2(150)
Thanks

Is there anyway to update a record throgh TO_CHAR function???
SQL> @test
SQL> create table abc (Attribute Varchar2(150));
Table created.
SQL> insert into abc values('09/30/2011');
1 row created.
SQL> commit;
Commit complete.
SQL> select * from abc;
ATTRIBUTE
09/30/2011
SQL> UPDATE ABC SET ATTRIBUTE=to_char(sysdate,'YYYY_MM_DD HH24:MI:SS');
1 row updated.
SQL> COMMIT;
Commit complete.
SQL> select * from abc;
ATTRIBUTE
2011_03_06 19:59:37
SQL> drop table abc;
Table dropped.
SQL>

Similar Messages

  • Update time and date with server time..?

    Hi.. All
    every login ,flash get server time from php. how can i update  time and date in flash..?

    I'm going to only show the month example, the rest is fairly straightforward:
    <?php $month = date('n'); ?>
    var date:Date = new Date();
    trace(date);
    date.setMonth($month);
    trace(date);

  • Data already exists for particular SID

    HI,
    I am executing a process chain for 0notification & is scheduled for 00:05hrs daily.
    It usually fails giving the error "Data already exists for SID <  >".However, when scheduled again it gets completed. This happens very often.
    Can nybody help me out for this? Please let me know why this is happenning.
    Thanx
    Preet

    In the InfoPackage select option PSA and then ignore duplicate records.

  • How can we check the data already exists in database

    hi friends
    i am trying create one procedure to add customers in database with customer id as input parameter..but if in the database customer detail already exists than i would like to update that detail and if its not in the database than i would like to add that detail in the databse...how could i do this ...
    any help wpould be appreciate
    thanks
    rommy

    Hi,
    If your requirement is to insert in one table and if the record exists insert into other table the merge statement doesn't work
    Example (please check the column name and parameter names). I don't put commit or rollback because I don't know if you control the transaction inside this procedure or outside it.
    CREATE OR REPLACE PROCEDURE add_cust(I_CUST_ID        IN VARCHAR2,
                                         I_CUST_F_NAME    IN VARCHAR2,
                                         I_CUST_L_NAME    IN VARCHAR2,
                                         I_CUST_ADD       IN VARCHAR2,
                                         I_CUST_CITY      IN VARCHAR2,
                                         I_CUST_STATE     IN VARCHAR2,
                                         I_CUST_ZIP       IN VARCHAR2,
                                         I_CUST_DOB       IN DATE,
                                         I_CUST_          IN VARCHAR2,
                                         I_CUST_ACCT_TYPE IN VARCHAR2,
                                         I_START_BAL      IN NUMBER) IS
    BEGIN
       INSERT INTO CUSTOMERS C
          (CUST_ID,
           CUST_F_NAME,
           CUST_L_NAME,
           CUST_ADD,
           CUST_CITY,
           CUST_STATE,
           CUST_ZIP,
           CUST_DOB,
           CUST_)
       VALUES
          (I_CUST_ID,
           I_CUST_F_NAME,
           I_CUST_L_NAME,
           I_CUST_ADD,
           I_CUST_CITY,
           I_CUST_STATE,
           I_CUST_ZIP,
           I_CUST_DOB,
           I_CUST_);
    EXCEPTION
       WHEN DUP_VAL_ON_INDEX THEN
          INSERT INTO CUSTOMER_ACCT
             (CUST_ID,
              CUST_ACCT_NO,
              cust_acct_type)
          VALUES
             (I_CUST_ID,
              CUST_ACCT_SEQ.NEXTVAL, -- CUST_ACCT_SEQ is a sequence, isn't?
              I_CUST_ACCT_TYPE);
    END add_cust;Regards,

  • Function module in Infotyp which checks if identical data already exists

    I want to create a new hr master data (tcode pa30) for Hans Müller in e.g Company X and fill out the necessary fields in Infotype 0001,0002 (Name, Birthdate, etc. ) u2013 done !
    After  creating the new hr master data for Hans Müller Iu2019d like to fill out a special Infotyp (0032) namely Internal Data.
    PROBLEM:
    While filling out the IT 0032 I do not know if the person - Iu2019ve created a new master data for - is already existing in the system ( but in other e.g Company Z) .
    So what I need is a function modul in the Infotype 0032 which checks if there is already a person with the same data existing in any company (the whole data bank) using 3 characters from Infotype 0002 (Personal Data) namely ,   First name, Last name, Birthd. . 
    And if a person with the same first name ,last name and birthday is already existing the function module should link to that one or just show me a information.
    Also tried to show you my problem on a graphic,
    Function_Module_Infotyp0032.png
    I hope you can help me. I would be very thankful for any hints , information or programming approach.
    Regards
    Sean

    the problem with your solution approach is that there could be different pers. no. for the same person in my issue.
    If I understood you well, that won't be a problem, since you already know which PERNR to use (The one you are using to update IT0032) In that case you only have to check if for that PERNR more than one record in PA0001 with different Company Code is present.
    If your problem is that another person with the same name and same date of birth is active in the system with different Company Codes it would be similar.
    For instance: Let's say that you find 2 different PERNRs for a given Name and Date of Birth in PA0002, then you can check IT0001 and look for the BUKRS value for those 2 Personel Numbers. If the values found are different you can raise the error message or whatever you need.

  • GR Reversal where LIV already exists

    Hi All,
    Is there a config to validate and prevent the GR reversal where LIV is already exist. We only set this in Vendor Master data but sometimes end user miss one.
    Regards,
    Joven

    HI,
    Why dont you make this field mandatory in the field selection here in the vendor master or while creating PO.
    Thanks & Regards,
    Kiran

  • Error when updating Budget-This entry already exists...Budget (OBGT)

    SAP 2007A SP00 PL49
    When updating Budget, get following error:
    This entry already exists in the following tables 'Budget' (OBGT) (ODBC-2035) [Message 131-183]
    Any ideas?
    Thanks,
    Ajay Audich

    Hi,
    Vitor Vieira,
    Thank you that your answer helped me solving my problem to some extent.
    I solved the problem by creating document and document lines table and creating a UDO with it. Because the problem was with assigning some data to the u201CCodeu201D field when using master type tables.
    I didnu2019t get any problem after using the document and document lines table.
    Also,initially I didnu2019t bind the # column of my matrix with the LineID field of table. After doing that it is working fine and I am able to update the records.
    But still this is not a proper solution and I didnu2019t get answer for why master type UDO doesnu2019t support updating.
    Thanks,
    V.M.Nivasini

  • Updates are not installing already exists, will modify existing instance.

    hi all
    I have  published updates via scup and seeing below message in update store log its  not updating old version what is this message means
    Update status from update (c2f61a88-730e-47af-8119-6e3b5a789764) already exists, will modify existing instance.
    ankith

    That just means that the client already scanned for compliance, scanned again now and found out that the state for that patch (installed, required, etc) has changed.
    Torsten Meringer | http://www.mssccmfaq.de

  • Can we display Cube update time and date

    Hi All,
    can we display Cube refresh time and date for user with out going into the Cube properties. Can we use any substitution variable for that?
    Another doubt----
    Will there be any systen defined default substitution variable in Essbase or anly user defined variables. IF there what are they and purpose of it?
    Regards

    After the successful cube building, you can capture the time stamp from the system into a variable and you can set the note on database.
    suppose below is the maxl script updatetime.mxl
    login $1 identified by $2 on $3 ;
    spool on to $4 ;
    alter database $5.$6 set note $7 ;
    logout ;
    spool off ;
    exit ;
    you can call the script like
    essmsh updatetime.mxl <<userid>> <<pwd>> <<server>> <<spoolfile>> <<appname>> <<dbname>> <<updatetime>>

  • Is it possible to update inside of an already existing .xml file?

    I have a problem where I had to write an implementation of stack and make it read files and find errors inside the files. The only problem I am having is being able to then go into the file and fix the problem. Any chance anyone could help me out?
    Thanks

    allieyooo wrote:
    That would be great if my professor did not care about performance but that is half of our grade.So write something; test it for correctness; and then performance test it (and document the results)... If it's not upto scratch then think about "How can I speed this up".
    Performance still isn't a primary design motivation.
    I'll bet that "half the marks" are primarily aimed at adequately metricating (and documenting) performance (which can be very tricky)... and secondarily; introducing you profiling your application and redesigning & tweaking to achieve the required performance.
    What performance requirements have you got? And how big (in bytes) is the data-file? Any statement of acceptable test-beds?. Any stated limitations on the design you can use to achieve it? Resource limitations? You know; that sort of stuff.
    Can you post a more complete description of the assignment... or better a URL I can download the assignment package from. It sounds like an interesting exercise.
    Cheers. Keith.
    Edited by: corlettk on 23/04/2009 15:23 ~~ Ooops!

  • Warning when the trip for the date already exist

    hi friends
    In the travel. When the trip is applied for a particular date when i again try to apply the trip for the same date it shows only waring but actually it should be a error. I want to make the warning into error. How to make that which BADI is called. Since am applying the trip from my portal. I want to display the warning into error to portal. Which BADI or Function Module is evolved .
    Regards
    vijay

    Hello Vijay,
    As long as there is no expense report linked to a travel request it is   
    possible to create a further request that overlaps with the first one.   
    This system behaviour is generally correct as during the planning        
    phase of a trip it should be possible to create overlapping trips.       
    Thus you only get a warning message that there are already trip dates    
    and not an error (as soon as an expense report has been created an error 
    message occurs if you try to create a new travel request that overlaps   
    the expense report).                                                     
    This is the standard design for overlapping checks concerning travel     
    requests.                                                                
    In TRVPA you can set the warning message into an error message.
    Regards,
    Raynard

  • My pc is broken and i got a new one how to sync my iphone without losing any of the data already existing on the iphone?

    Plz can i have a help with that???

    Copy everything from your backup copy of your old computer to your new one.

  • An item that already exist in the list

    if someone insert an item that already exist in the list- I want that an email will send to the manager.
    can I do this? how?

    I will write code that send an email, but my question is in which event?
    ItemUpdating event will not help me because the item will not update if the item already exist in the list...
    thank you!
    in item adding get the column value of the item which is getting added
    string value= properties.AfterProperties["ColumnName"].ToString(); OR string name= web.Lists[properties.ListId].Fields["Column Display Name"].InternalName;string value= properties.AfterProperties[name].ToString();
    after getting the value search if the item exists which has the same field value. 
    you can iterate the list for searching but i will recommend you to use CAML query

  • "already exist" error during JD Edwards EnterpriseOne 9.0 installation

    Hi all
    I am trying to install JD Edwards EnterpriseOne 9.0 and i am having the following error:
    "Prototype Control Tables and/or Business Data already exist. The installer detected an existing Prototype Environment on your computer. Please go back and switch to Upgrade Mode, or click cancel, and uninstall your existing Prototype Environment and try again."
    I have installed successfully the deployment server but when i try to install the enterprise server i am having this error. After installing the deployment server(on windows with oracle database) i do not know which are the default credentials for entering the E1LOCAL database created.
    Can you please suggest how can i solve this issue?
    Thank you and best regards

    Check NLS_LANG in HKLM\SOFTWARE\ORACLE\KEY_XXX It must be AMERICAN_AMERICA.AL32UTF8

  • Time N Date - 6300

    Hi,
    I own nokia 6300,last week i updated my mobile's firmware to 6.6 from 4.7, 4m then
    1 . Whn i SWITCH OFF n ON my mobile(witout removing battery), it is asking me to update time n date everytime, and
    2. suddenly time n date resets on its own prompting me update the same
    Can anyone fix this problem, Is this the problem with the new firmware r else ?

    After up grading did u select a time zone and plz that that in ur settings/general/date and time u have
    proper time zone like for India its GMT +5:30
    ur work days r set in order from Monday to Sunday
    and ur network operator timer is off
    and lastly put the phone on from manual time update to automatic..........
    Articles posted courtesy engadget
    keep us updated about the progress.... if u like wat I have to offer then click on khudos.

Maybe you are looking for

  • Won't read data dvd

    Hello, I'm using MBP 13" mid 2009, processor 2.53 Ghz Intel Core 2 Duo, Mac OS X Lion 10.7 My MBP can play any movie dvd, but when I insert a dvd-r from my friend which have data inside, the MBP says that the dvd-r is blank and ask me what i want to

  • FX Teleport for the Mac

    There's an announcement in this story that FX Teleport for the Mac is coming in Q2. http://www.soniccontrol.com/features/article.php?ID=17 G5   Mac OS X (10.4.2)  

  • Help regarindg country formatting and printer formatting in scripts

    Hi all,   I'm facing a problem printing the address in SAPscript. Though we try to display the field T005-LAND1 within Address -endadress, the field T005T-LANDX50 gets displayed. For example- when we want to display countrycode as NL(netherlands), on

  • Flex 4 Modules Creation Cycle bug ?

    http://filip.nedyalkov.net/creationcycle/ - view source is enabled, download and see the traces Ok so here is what happens in this application: Some elements are created in the main application and also a module is loaded. As soon as it is ready the

  • Custom printer defaults

    I'm using (at work) a G3 iBook using OS 3w/a Canon i70 printer. All software/drivers are up to date. I have a program for printing educational reports that will use two pieces of paper for one sheet of info, due to the footer being a bit low- it prin