get date in sql code example
Example 1: get current date sql
SELECT getdate(); -- Get Current date in SQL Server
Example 2: sql DATE = GETDATE()
CAST(GETDATE() AS DATE)
Example 3: how to get date in sql
SELECT CURRENT_DATE from dual;
SELECT getdate(); -- Get Current date in SQL Server
CAST(GETDATE() AS DATE)
SELECT CURRENT_DATE from dual;