Complete the code to select the current date in PostgreSQL.
SELECT [1];The CURRENT_DATE function returns the current date without time in PostgreSQL.
Complete the code to select the current date and time in PostgreSQL.
SELECT [1];The NOW() function returns the current date and time in PostgreSQL.
Fix the error in the code to select the current timestamp in PostgreSQL.
SELECT [1];CURRENT_TIMESTAMP returns the current date and time in PostgreSQL and is the correct keyword to use here.
Fill both blanks to select the current date and current timestamp in PostgreSQL.
SELECT [1] AS today, [2] AS now_time;
CURRENT_DATE returns the current date, and CURRENT_TIMESTAMP returns the current date and time.
Fill all three blanks to select current date, current timestamp, and current time in PostgreSQL.
SELECT [1] AS today, [2] AS now_time, [3] AS just_time;
CURRENT_DATE returns the date only, CURRENT_TIMESTAMP returns date and time, and CURRENT_TIME returns the current time only.