Can I fire show create table query in Java code for mysql?
What I need is complete schema of one database (an old one) in one file and same there is one another database (modified one) schema.
And want to compare schema of both to check difference.
Is it possible?
Why I need in java because I can bild up temporary cooperator that will check sql periodically and give me difference of it in development stage as multiple people are working in project.
You can do it as a simple query. You get back 1 row 2 columns. The first column is the table name and the second column is a TEXT or CLOB with the create table SQL statement.