
August 9th, 2007, 12:53 AM
|
|
Contributing User
|
|
Join Date: May 2006
Posts: 707
Time spent in forums: 2 Days 1 m 25 sec
Reputation Power: 3
|
|
|
JDBC compare the content of two tables
Hello everyone,
I am using JDBC to compare the content of two database tables -- writing a general function and two tables are input. The two tables have various types of columns, like VARCHAR, BLOB, INT, FLOAT, etc.
I want to save my time to write various statements to get values by different types and compare them, for example, for VARCHAR, I need to use getString and compare the content by String compare function, and for INT column, I need to use getInt and compare with Integer compare function.
I am wondering whether there are any smart way to implement in an uniformed way so that I do not need to write various switches according to column type.
thanks in advance,
George
|