printing column name of value in mysql python code example
Example 1: mysql find tables with column name
SELECT DISTINCT TABLE_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME IN ('columnA','ColumnB')
AND TABLE_SCHEMA='YourDatabase';
Example 2: modify column name in tsql
sp_rename 'table_name.old_column', 'new_name', 'COLUMN';