About 602,000 results
Open links in new tab
  1. database - how to get current datetime in SQL? - Stack Overflow

    Aug 5, 2009 · Want to get current datetime to insert into lastModifiedTime column. I am using MySQL database. My questions are: is there a function available in SQL? or it is …

  2. sql - How to get current date & time in MySQL? - Stack Overflow

    Sep 8, 2015 · Is there a value or command like DATETIME that I can use in a manual query to insert the current date and time? INSERT INTO servers ( server_name, online_status, …

  3. Getting the current date in SQL Server? - Stack Overflow

    Closed 12 years ago. How can I get the current date in MS-SQL Server 2008 R2? The format of the column in my database is DATETIME and dates are stored in the following format:

  4. sql - How to use current date in the where clause - Stack Overflow

    Jan 24, 2017 · I have a view in the Oracle DB which has the field called Update_Date I need to select all the fields from the view if the update_date is equal to yesterday's date (may be …

  5. how to get current/Todays date data in sql server

    Mar 5, 2015 · how to write query to get today's date data in SQL server ? select * from tbl_name where date = <Todays_date>

  6. sql server - Set a DateTime database field to "Now" - Stack Overflow

    Dec 20, 2010 · In VB.net code, I create requests with SQL parameters. It I set a DateTime parameter to the value DateTime.Now, what will my request look like ? UPDATE table SET …

  7. How to return only the Date from a SQL Server DateTime datatype

    Sep 22, 2008 · The datetime data type cannot have no time at all. I think you are confusing data storage with user presentation. If all you want is a way to show a user a string that has no time …

  8. SQL Query Where Date = Today Minus 7 Days - Stack Overflow

    SQL Query Where Date = Today Minus 7 Days Asked 8 years, 9 months ago Modified 1 year, 2 months ago Viewed 227k times

  9. How do I get CURRENT_DATE in MSSQL? - Stack Overflow

    Dec 15, 2012 · You must instead use the SQL-server specific GETDATE() function, as the document linked shows. Because current_date is a keyword in the spec, you can't just create …

  10. How to select date without time in SQL - Stack Overflow

    Feb 26, 2011 · It seems to combine the SQL Server T-SQL GetDate() with the Oracle PL/SQL TO_DATE(). If it did work, it appears to involve an unnecessary date/time to text to date …