Funktionen zur Datenbearbeitung in PostgreSQL
Brian Piccolo
Sr. Director, Digital Strategy
SELECT NOW();+-------------------------------+ | now() | |-------------------------------| | 2019-04-19 02:51:18.448641+00 | +-------------------------------+
SELECT NOW()::timestamp;+----------------------------+ | now() | |----------------------------| | 2019-04-19 02:51:18.448641 | +----------------------------+
SELECT NOW()::timestamp;
SELECT CAST(NOW() as timestamp);
SELECT CURRENT_TIMESTAMP;+-------------------------------+ | current_timestamp | |-------------------------------| | 2019-04-19 02:51:18.448641+00 | +-------------------------------+
SELECT CURRENT_TIMESTAMP(2);+-------------------------------+ | current_timestamp | |-------------------------------| | 2019-04-19 02:51:18.44+00 | +-------------------------------+
SELECT CURRENT_DATE;+--------------+ | current_date | |--------------| | 2019-04-19 | +--------------+
SELECT CURRENT_TIME;+------------------------+ | current_time | |------------------------| | 04:06:30.929845+00:00 | +------------------------+
Funktionen zur Datenbearbeitung in PostgreSQL