You can use the information_schema.COLUMNS table to find default values, including all table definitions.
Sample table
CREATE TABLE `Matches` ( `FootballerName` varchar(100) DEFAULT NULL, `Goal` int(11) DEFAULT '5', `Tournament` varchar(100) DEFAULT NULL ) ;
The source data for the table
insert into Matches(FootballerName,Goal,Tournament) select 'Messi ', 3 ,'La liga' union select 'Ronaldo ', 5 ,'UEFA' union select 'Surez ', 2 ,'La liga';
Required request to achieve the required.
SELECT * FROM Matches WHERE Goal not in( select COLUMN_DEFAULT from information_schema.COLUMNS where TABLE_NAME='Matches' and COLUMN_NAME='Goal');
Read more about "information_schema.COLUMNS" here
source share