How to Execute Delete Statements in Java: The 'executeUpdate' Method
The correct answer is 'executeUpdate'. None of the other options, 'executeQuery', 'executeDelete', or 'execute', are used for executing delete statements.
The 'executeUpdate' method is used for executing any SQL statement that modifies the database, including delete statements, insert statements, and update statements. It returns the number of rows affected by the statement.
原文地址: https://www.cveoy.top/t/topic/oAN5 著作权归作者所有。请勿转载和采集!