Throughout the error today, I ran an SQL statement to filter some elements by date, for simplicity we will say that I used
SELECT * FROM [TableName] WHERE [RecordCreated] >+ '2016-04-10'
Only after the operator started, I realized that I used> + instead of> =, now I was confused, as I would expect an error.
I tried a couple of other options like
>- -- Throws an error <+ -- Ran successfully <- -- Throws an error
The number of rows returned was exactly the same if I used> = or> +
After searching the Internet, I could not find the documentation that directly looked at this syntax only when the two statements are used separately.
The RecordCreated column is a datetime .
Is this just the syntax for a possible common error, or is it potentially trying to specify a date as a numeric value?
sql-server tsql
samuelmr
source share