简体   繁体   中英

Does JDBC request working with Insert query type?

I am trying to run a insert statement which will help me to create user account for my following api calls. I looked at JMeter JDBC request which has select/update/ect... i don't see insert query type. does anyone know how can i run some insert query to create the user for my database?

thanks L.

You should use Update Statement Query type also for inserts

Update Statement - use this for Inserts and Deletes as well

You may use also Prepared Update Statement type:

Prepared Update Statement - use this for Inserts and Deletes as well

In JDBC terms "insert" equivalent is update therefore you need to choose Update Statement from the "Query Type" dropdown:

在此处输入图片说明

You might also find How to Create Test Data in a Database with JMeter useful, it provides more insight and examples.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM