Skip to main content
Tweeted twitter.com/StackDBAs/status/1286813585109389313
added 17 characters in body
Source Link
Evan Carroll
  • 64.7k
  • 49
  • 251
  • 496

What is the SQL Server functionality that allows you to get the current date as a DATE type like the SQL Standard's CURRENT_DATE feature, from SQL 2011-n,

130 F051-06 CURRENT_DATE

  • Subclause 6.32, <datetime value function>: The <current date value function>

  • Subclause 6.31, <datetime value expression>: When the value is a <current date value function>

. What is the <current date value function> for SQL Server?

InUsing PostgreSQL terms, I'm looking for something like,

SELECT CURRENT_DATE;
 current_date 
--------------
 2018-06-27
(1 row)

What is the SQL Server functionality that allows you to get the current date like the SQL Standard's CURRENT_DATE feature, from SQL 2011-n,

130 F051-06 CURRENT_DATE

  • Subclause 6.32, <datetime value function>: The <current date value function>

  • Subclause 6.31, <datetime value expression>: When the value is a <current date value function>

What is the <current date value function> for SQL Server?

In PostgreSQL terms, I'm looking for something like,

SELECT CURRENT_DATE;
 current_date 
--------------
 2018-06-27
(1 row)

What is the SQL Server functionality that allows you to get the current date as a DATE type like the SQL Standard's CURRENT_DATE feature. What is the <current date value function> for SQL Server?

Using PostgreSQL, I'm looking for something like,

SELECT CURRENT_DATE;
 current_date 
--------------
 2018-06-27
(1 row)
added 19 characters in body
Source Link
Evan Carroll
  • 64.7k
  • 49
  • 251
  • 496

What is the SQL Server functionality that allows you to get the current date like the SQL Standard's CURRENT_DATE feature, from SQL 2011-n,

130 F051-06F051-06 CURRENT_DATE

  • Subclause 6.32, <datetime value function>: The <current date value function>

  • Subclause 6.31, <datetime value expression>: When the value is a <current date value function>

What is the <current date value function> for SQL Server?

In PostgreSQL terms, I'm looking for something like,

SELECT CURRENT_DATE;
 current_date 
--------------
 2018-06-27
(1 row)

What is the SQL Server functionality that allows you to get the current date like the SQL Standard's CURRENT_DATE feature,

130 F051-06 CURRENT_DATE

  • Subclause 6.32, <datetime value function>: The <current date value function>

  • Subclause 6.31, <datetime value expression>: When the value is a <current date value function>

What is the <current date value function> for SQL Server?

In PostgreSQL terms, I'm looking for something like,

SELECT CURRENT_DATE;
 current_date 
--------------
 2018-06-27
(1 row)

What is the SQL Server functionality that allows you to get the current date like the SQL Standard's CURRENT_DATE feature, from SQL 2011-n,

130 F051-06 CURRENT_DATE

  • Subclause 6.32, <datetime value function>: The <current date value function>

  • Subclause 6.31, <datetime value expression>: When the value is a <current date value function>

What is the <current date value function> for SQL Server?

In PostgreSQL terms, I'm looking for something like,

SELECT CURRENT_DATE;
 current_date 
--------------
 2018-06-27
(1 row)
Source Link
Evan Carroll
  • 64.7k
  • 49
  • 251
  • 496

What is the CURRENT_DATE or current date value function for SQL Server?

What is the SQL Server functionality that allows you to get the current date like the SQL Standard's CURRENT_DATE feature,

130 F051-06 CURRENT_DATE

  • Subclause 6.32, <datetime value function>: The <current date value function>

  • Subclause 6.31, <datetime value expression>: When the value is a <current date value function>

What is the <current date value function> for SQL Server?

In PostgreSQL terms, I'm looking for something like,

SELECT CURRENT_DATE;
 current_date 
--------------
 2018-06-27
(1 row)