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
  • 22,212
  • 11
  • 70
  • 132
sasasasa
  • 137
  • 2
  • 8

1 Answers1

5

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
  • 6,042
  • 9
  • 34
  • 53