Php Prepared Statements Turn Emulation Off

后端 未结 2 1687
攒了一身酷
攒了一身酷 2020-12-09 13:25

Are there any side effects to turning off emulation when using prepared statements with pdo? I\'m using a select * and limiting the results which needs to be handled as an i

2条回答
  •  Happy的楠姐
    2020-12-09 14:05

    Nope, there are no pros or cons worth mentioning.

    Obviously turning emulation off would save a lot of binding.

    Not that much. You can use binding only for such cases with LIMIT and continue using lazy binding in execute() for all other cases even with emulation turned on.

提交回复
热议问题