JDBC.sql 435 B

123456789101112131415161718
  1. drop database mydb;
  2. create database mydb;
  3. -- install the Java UDR jar file (customize the URL for your installation)
  4. execute procedure install_jar(
  5. "file:$INFORMIXDIR/extend/krakatoa/examples/JDBC.jar", "jdbc_jar", 0);
  6. -- register the Java UDRs
  7. create function sum1to10() returns int
  8. external name 'jdbc_jar:JDBC.sum1to10()'
  9. language java;
  10. -- test the Java UDR (should get back 55)
  11. execute function sum1to10();