php - mysql queries - performance loss by putting numbers in quotes? -


If a variable is always a number, is there a performance impairment by inserting it into invert commas?

For example

  "select prod.product_name from prod.HD = prod.id = '$ id'";  

No , you will not have any performance loss Inverted Take care of SKL injection by putting them inside a comma, but in such questions. Also keep in mind that performance means many things, you must be specific. Generally, it works fine.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -