klyn.databases.sql.Statement.executeQuery
method
public executeQuery(sql as String) as ResultSet throws SQLException
Description

Executes a SQL query and returns the result set.

import klyn.databases.sql

rows = statement.executeQuery("select * from users")
Throws
  • SQLException if the SQL operation cannot be completed because parameters, state, protocol data, or the database response are invalid.