MSCEWI3036
Types resolution issues, the arithmetic operation may not behave correctly between string and date.
Severity
Description
Example Code
Input Code:
-- Given the following table
CREATE TABLE TIMES(
AsDate Date,
AsIntervalDaySecond varchar(20)
);
-- An arithmetic operation between two data types that may not behave correctly
SELECT TIMES.AsIntervalYearMonth + TIMES.AsDate FROM TIMES;Output Code:
Recommendations
Last updated
