select a.Name from rat. Assessment a where a.AssessmentId = '3'
select a.Name from rat. Assessment a where a.AssessmentId = 3
whats the difference performance wise ?
is it slow for the first one ?
How can i know if sql server has casted the the column or value to match the the column type or value type ?
I saw the execution plan. cant understand much.
The first one requires type casting (assuming that AssessmentID is a numeric data type), which has its performance overhead. In this case it will be negligible, but in more complex queries there can be performance difference. In some cases, MySQL can’t use index efficiently if it needs to do type casting.