-
What are the results of the following queries if col is an integer column?
1. SELECT * FROM student WHERE id = '6';
2. SELECT * FROM student WHERE id = 6;
-
- 1 is an error
- 2 is an error
- same
- different
- None of these
Correct Option: C
The first query invokes a type conversion. The conversion operation involves some performance penalty for converting the integer and string to double to perform the comparison.