MySQL NOW Function

Wednesday, December 21, 2011

tags SQL

The MySQL NOW function is used to display the current date and time. The equivalent function in Microsoft SQL Server is GETDATE.

Syntax

NOW()


Example
SELECT NOW() as [Date / Time]


Results

Date / Time
2011-12-13 20:15:05

Did you find the page informational and useful? Share it using one of your favorite social sites.

Recommended Books & Training Resources

SQL Cookbook Head First SQL: Your Brain on SQL A Learners Guide