แก้ไข Table Name
select
concat('rename table ', table_name, ' to ' , lower(table_name) , ';')
from information_schema.tables where table_schema = 'db_andacrm';

แก้ไข COLUMN_NAME
select
concat('rename table ', COLUMN_NAME, ' to ' , lower(COLUMN_NAME) , ';')
from information_schema.COLUMNS where TABLE_NAME = "customers"