Let's take an example.
The DATEDIFF
function has this signature:
DATEDIFF ( datepart , startdate , enddate )
datepart
must by an SQL keyword. Lets say, for minute, we mai use one of those keywords: minute
, mi
, m
.
If I am going to execute this statement
select datediff(mi,'2012-April-09','2013-April-08')
it will have the exact same effect as this one:
select datediff("mi",'2012-April-09','2013-April-08')
What is happening when those double quotes are met?
What is SQL Server going to do with what in inside double quotes?