I am working on database migration tool in java. The tool is copying database tables with their data\'s to the destination database. But I want it to work on different databases
I'm not aware of JDBC having a generic facility to do this. You probably have to make a utility library that generates the SQL for table creation.
Start with one that does ANSI SQL and test it on as many platforms as you intend to support. Remember, Java is still write-once, debug everywhere so you will need to test this on any platform you intend to support the system on. Subclass the generator if you have to make dialectic variations of the create statement for any of your platforms.