MySQL Prepared Statements

后端 未结 2 660
感情败类
感情败类 2020-11-28 15:58

I was just wondering if there was a way I could use some form of prepared statements in MySQL so I wouldn\'t have to escape all my inputs and I wouldn\'t have to switch all

2条回答
  •  旧巷少年郎
    2020-11-28 16:40

    If you don't want to deal with escaping your input, you can always pattern match it as it comes in then dispatch your prewritten statements. This is really only going to be worth the effort if you have relatively few possible statements to execute.

提交回复
热议问题