I think it is better to use the JXL api for excel rather than using jdbc.
A link to the API tutorial - Java Excel API Tutorial