executeQuery Method (SQLServerStatement)
Runs the given SQL statement and returns a single SQLServerResultSet object.
Syntax
public java.sql.ResultSet executeQuery(java.lang.String sql)
Parameters
sql
A String that contains an SQL statement.
Return Value
A SQLServerResultSet object.
Exceptions
Remarks
This executeQuery method is specified by the executeQuery method in the java.sql.Statement interface.
SQLServerException is thrown if the given SQL statement produces anything other than a single SQLServerResultSet object.
If executing a stored procedure results in an update count that is greater than one, or that generates more than one result set, use the execute method to execute the stored procedure.
See Also
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho