About 514,000 results
Open links in new tab
  1. How do you update a DateTime field in T-SQL? - Stack Overflow

    Jun 29, 2010 · The following query does not update the datetime field: update table SET EndDate = '2009-05-25' WHERE Id ...

  2. How do I update a column named Date in SQL? - Stack Overflow

    Mar 14, 2022 · try to do not use SQL keywords ("table', 'column", "date"...) except if the name is surrounded of double quote; So, a column nammed Date must be surround of double quote …

  3. How to update only days of a date in SQL Server

    Feb 3, 1999 · How to update all days in date column in table to special date? I want change only day, no month, no year My table: id RegisterDate ----- 1 2001-01-18 2 2018-09-13 3 ...

  4. Update sql date field in mssqlserver with YYYY-MM-DD format

    Sep 23, 2013 · If you want to manually set a datetime type, you ussually write a string with the date that is directly casted or indirectly casted to datetime format i.e. declare @dt datetime = …

  5. sql server - Update only Date portion of DateTime - Stack Overflow

    Oct 4, 2012 · I am using SQL Server 2008. I have a datetime in the database where the value is . 10/4/2012 8:03:00 AM How do I update only the date portion? The field name is dTime. I like …

  6. Updating a date in Oracle SQL table - Stack Overflow

    Apr 16, 2012 · Whether that is the problem or not, you should always specify the date model: UPDATE PASOFDATE SET ASOFDATE = TO_DATE('11/21/2012', 'MM/DD/YYYY'); Since …

  7. how do I query sql for a latest record date for each user

    SELECT a.username, a.date, a.value FROM myTable a LEFT OUTER JOIN myTable b ON a.username = b.username AND a.date < b.date WHERE b.username IS NULL ORDER BY …

  8. update DateTime value in Table using SQL - Stack Overflow

    Dec 17, 2009 · UPDATE TableLastCalls SET [NEXT_UPDATE_TIME] = DATEADD(MINUTE, 5, NEXT_UPDATE_TIME) UPDATE TableLastCalls SET [NEXT_UPDATE_TIME] = …

  9. sql server - How can I use a SQL UPDATE statement to add 1 year …

    Aug 16, 2013 · I want to add 1 year to a datetime-type column in every single row in a table. Adding using an UPDATE statement is easy for numeric types. ex: UPDATE TABLE SET …

  10. Update date only in SQL Server - Stack Overflow

    Dec 6, 2013 · I have this row in my database table with a value of 1/5/2013 5:50:00 PM, and I want to update only the date part. Time should be same without any change, need to change …

Refresh