Conceptual
Login

Implicit Type Conversion

When a comparison mixes types (a VARCHAR column against a numeric literal), the engine inserts a silent cast; if the cast lands on the column side, the predicate becomes an expression over the column and index seeks are disabled. Matching literal and parameter types to column types avoids the trap.

Questions this Concept answers

  • Why does an implicit cast applied to the column side of a comparison make the index unusable?