如果您将
database class与
query bindings一起使用,则无需进行任何手动转义:
The secondary benefit of using binds is that the values are automatically escaped,producing safer queries. You don’t have to remember to manually escape data; the engine does it automatically for you.