Disadvantages of quoting integers in a Mysql query?

后端 未结 4 1269
天涯浪人
天涯浪人 2020-12-06 18:56

I am curious about the disadvantage of quoting integers in MYSQL queries

For example

SELECT col1,col2,col3 FROM table WHERE col1=\'3\';
4条回答
  •  情书的邮戳
    2020-12-06 19:42

    According to me, I think there is no performance/size cost in the case you have mentioned. Even if there is, then it is very much negligible and wont affect your application as such.

提交回复
热议问题