The Intervaldemo.java program, which is included in IBM Informix JDBC Driver, shows how to insert into and select from the two types of INTERVAL data types.