I have two sql files(t1.sql and t2.sql). Two sql files are different versions and two files contains create queries. I want to compare two sql files query to check the query structures are changed or not.
For example:-
t1.sql file: CREATE TABLE `static_ids` ( `access_id` int(11) unsigned NOT NULL DEFAULT '0', `group_id` int(11) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`access_id`,`group_id`) ) ENGINE=MyISAM; t2.sql file: CREATE TABLE `static_ids` ( `access_id` int(11) unsigned NOT NULL DEFAULT '0', `group_id` int(11) unsigned NOT NULL DEFAULT '0', `group_name` varchar(50) NOT NULL DEFAULT '', PRIMARY KEY (`access_id`,`group_id`) ) ENGINE=MyISAM;
In this example, create query for the table static_ids
structure is different.
Kindly give any idea to compare two sql file queries through PHP. Thanks in advance.