SQL query context

    Setting the query context

    Example using JDBC

    1. // Set any query context parameters you need here.
    2. Properties connectionProperties = new Properties();
    3. connectionProperties.setProperty("sqlTimeZone", "America/Los_Angeles");
    4. try (Connection connection = DriverManager.getConnection(url, connectionProperties)) {
    5. // create and execute statements, process result sets, etc