You will want to do a CONCAT with INFORMATION_SCHEMA views for Columns and Tables and then a GROUP_CONCAT with that. A basic structure looks like this:
SELECT CONCAT(GROUP_CONCAT(CONCAT('SUM(',COLUMN_NAME,')')),',',(SELECT GROUP_CONCAT(COLUMN_NAME)
FROM INFORMATION_SCHEMA.COLUMNS
WHERE table_name = '4gc_1h_atch_enb'
AND DATA_TYPE <> 'int'))
FROM INFORMATION_SCHEMA.COLUMNS
WHERE table_name = '4gc_1h_atch_enb'
AND DATA_TYPE = 'int'
That will give you the "sum(col-1),sum(col-2)....sum(col-N)" part. You can do something similar with tables. The WHERE part is also part of the CONCAT. In the end you will have a script to execute.