3

I have got 10 tables in mysql all starting with uppercase, I was wondering if can change all of them to lowercase with one query rather than 20?

Martin
  • 20,858
  • 7
  • 60
  • 113
sasasasa
  • 137
  • 2
  • 8

1 Answers1

4

Check Amy Anuszewski answer

select concat('rename table ', table_name, ' to ' , lower(table_name) , ';')from information_schema.tables where table_schema = 'your_schema_name';
Ghostman
  • 5,918
  • 9
  • 33
  • 52