how to get current timestamp in sql query code example
Example 1: how to to get current date in sql
SELECT CURRENT_DATE from dual;
Example 2: how to retrive the today date sql
select * from datetimes
where dtm >= cast((now()) as date)
and dtm < cast((now() + interval 1 day) as date)
;