clickhouseHow to get current datetime
Usage example
SELECT now()
output
┌───────────────now()─┐
│ 2022-01-12 17:14:54 │
└─────────────────────┘
More of Clickhouse
- Select countIf usage example
- Get current server timezone
- Get year and month from date
- How to format date/time
- Using multiIf in query
- List all tables from all database
- How to get median value
- Using variables in queries
- Convert datetime to unix timestamp
- Get total database size
See more codes...