📜  db.query 和 db.execute 之间的区别 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:15.949000             🧑  作者: Mango

代码示例1
With .query(), parameter substitution is handled on the client,
including objects which let data = req.body is in the above examples.

With .execute() prepared statement parameters are sent from the client
as a serialized string and handled by the server. Since let data = req.body
is an object, that's not going to work.