Java – what to use: executeupdate() or execute()?
•
Java
Please tell me which two methods of executeupdate and execute are the values (?,?,?) of the inserted user (name, addr, city, sex, DOB) The best way to insert a query in these statements will execute the query, which should ideally be used to insert the query?
Solution
The return value is different Executeupdate() returns the number of updated rows, which is useful when running update statements In your case, it is not necessary because you know how many records you have inserted You can use any one
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码