I have a table 'A B C' (with spaces, don't ask me why) in MySQL database. I have to rename it to 'ABC' This query doesn't work :(
rename table 'A B C' to 'ABC'
What should be the correct query?
I get the same usual error
'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version'
Escape the name with backticks.
rename table `A B C` to ABC
Use backticks:
rename table `A B C` to ABC;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With