9951 explained code solutions for 126 technologies


clickhouseHow to get current datetime


SELECT now()ctrl + c
now()

returns current date/time


Usage example

SELECT now()
output
┌───────────────now()─┐
│ 2022-01-12 17:14:54 │
└─────────────────────┘