开发者

Are there any issues with always preparing SQL statements with PHP?

开发者 https://www.devze.com 2023-03-20 14:45 出处:网络
Is there any issue with always preparing SQL statements with PHP instead of executing them directly? Not sure if database system matters, but it\'s DB2 o开发者_C百科n System i.You might take a slight

Is there any issue with always preparing SQL statements with PHP instead of executing them directly?

Not sure if database system matters, but it's DB2 o开发者_C百科n System i.


You might take a slight performance hit, if they are real prepared statements and not just emulated in the driver. This is because you will have to make two calls to the database, rather than just one.

0

精彩评论

暂无评论...
验证码 换一张
取 消