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
2011-12-13 20:15:05
The MySQL NOW
function is used to display the current date and time. The equivalent function in Microsoft SQL Server is GETDATE
.
NOW()
SELECT NOW() as [Date / Time]
2011-12-13 20:15:05