SQL da programma SQLJ - Part1: esempio public class Routines1 { //The region method //An Integer method that will be called as a function public static Integer region(String s) throws SQLException { if (s == MN || s == VT || s == NH ) return 1; else if (s == FL || s == GA || s == AL ) return 2; else if (s == CA || s == AZ || s == NV ) return 3; else return 4; } //The correctStates method //A void method that will be called as a stored procedure public static void correctStates (String oldSpelling, String newSpelling) throws SQLException { Connection conn = DriverManager.getConnection ( JDBC:DEFAULT:CONNECTION ); PreparedStatement stmt = conn.prepareStatement ( UPDATE emps SET state = .