About 207,000 results
Open links in new tab
  1. 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, exchange, disk_space, …

  2. Difference between NOW(), SYSDATE() & CURRENT_DATE() in MySQL

    Jun 10, 2014 · The MySQL Reference says that, with regard to when and how many times it's executed, curdate() behaves like now(). Reference: MySQL 5.7 Reference - Date and Time Functions -- All of …

  3. mysql - CURRENT_DATE/CURDATE () not working as default DATE …

    37 Currently from MySQL 8 you can set the following to a DATE column: In MySQL Workbench, in the Default field next to the column, write: (curdate()) If you put just curdate() it will fail. You need the …

  4. Insert current date in datetime format mySQL - Stack Overflow

    9 NOW() is used to insert the current date and time in the MySQL table. All fields with datatypes DATETIME, DATE, TIME & TIMESTAMP work good with this function. YYYY-MM-DD HH:mm:SS …

  5. mysql - Setting default value for DATE type column to current date ...

    Mar 2, 2015 · NOTE: The question is about DATE type, not Datetime nor Timestamp How to alter column of date data type to use current date by default? I saw a lot of examples for datetime (with …

  6. MySQL Select Date Equal to Today (having datetime as the data type)

    I'm trying to run a mysql select statement where it looks at today's date and only returns results that signed up on that current day. I've currently tried the following, but it doesn't seem to wor...

  7. Curdate () Vs current_date MySql - Stack Overflow

    Jan 6, 2014 · Curdate () Vs current_date MySql Asked 11 years, 10 months ago Modified 4 years, 9 months ago Viewed 11k times

  8. How to subtract 30 days from the current datetime in mysql?

    Dec 23, 2016 · SELECT * FROM table WHERE exec_datetime >= DATE_SUB('2012-06-12', INTERVAL 30 DAY); You can use BETWEEN if you really just want stuff from this very second to 30 days before …

  9. mysql - how to get current date from server - Stack Overflow

    Jul 1, 2006 · i want to get the current date from server and my database is on server then whose date mysql now () and CURDATE () function will give, whether of client machine or of server.

  10. mysql - Set current date in the datetime field - Stack Overflow

    Feb 10, 2012 · There is a datetime field in the MySQL table: `mytime` datetime It contains entries like '2012-02-10 10:15'. How to set the date part to the current date?