I've imported a csv into MySQL. PHPMyAdmin helpfully created a table called TABLE 8 (with a space).
When I try to rename in SQL:
RENAME TABLE 8 to gender
I get the error:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`TABLE 8` to `gender`' at line 1
I have tried back-ticks, quotes... seemingly everything...
I guess it's the space that's causing the problem but I'm out of ideas.