DrSchool Learn coding, fast.
EN AR BN CS DE EL Search

Date & Time — Example 161

Quick explanation + ready code for: Date & Time.

SQL Date & Time Back to examples
Back to language
Syntax: Date & Time in SQL. ID: #161

Code

SELECT CURRENT_TIMESTAMP AS now;

Notes

You can copy this snippet and adapt it. For advanced, add real-world inputs, edge cases, and tests.