LO.sql 437 B

12345678910111213141516171819202122
  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/LO.jar", "lo_jar", 0);
  6. -- register the Java UDRs
  7. create function lo() returns clob external name 'lo_jar:LO.lo()'
  8. language java;
  9. -- test the Java UDRs
  10. create table mytable (c clob);
  11. execute function lo();
  12. drop table mytable;