JDBC 请求使用插入查询类型吗?
Does JDBC request working with Insert query type?
我正在尝试 运行 插入语句,这将帮助我为接下来的 api 调用创建用户帐户。
我查看了具有 select/update/ect 的 JMeter JDBC 请求...我没有看到插入查询类型。
有谁知道我如何 运行 一些插入查询来为我的数据库创建用户?
谢谢
L.
您应该对插入也使用 Update Statement 查询类型
Update Statement - use this for Inserts and Deletes as well
您也可以使用 Prepared Update Statement 类型:
Prepared Update Statement - use this for Inserts and Deletes as well
在 JDBC terms "insert" equivalent is update
中,因此您需要从 "Query Type" 下拉列表中选择 Update Statement
:
您可能还会发现 How to Create Test Data in a Database with JMeter 很有用,它提供了更多见解和示例。
我正在尝试 运行 插入语句,这将帮助我为接下来的 api 调用创建用户帐户。 我查看了具有 select/update/ect 的 JMeter JDBC 请求...我没有看到插入查询类型。 有谁知道我如何 运行 一些插入查询来为我的数据库创建用户?
谢谢 L.
您应该对插入也使用 Update Statement 查询类型
Update Statement - use this for Inserts and Deletes as well
您也可以使用 Prepared Update Statement 类型:
Prepared Update Statement - use this for Inserts and Deletes as well
在 JDBC terms "insert" equivalent is update
中,因此您需要从 "Query Type" 下拉列表中选择 Update Statement
:
您可能还会发现 How to Create Test Data in a Database with JMeter 很有用,它提供了更多见解和示例。