Mysql error (don't laugh, please)
I created a script that creates a statistics table for my site. This script creates more than 2000 tables that are used for different statistics with a different level of detail, for example:
- year tables
- daily tables
- tables
- user_agent tables
etc. (do not ask me why this was done by the previous so-called architect - they wrote in less than 0.02 seconds)
So, I updated the script to add new tables, but made a mistake.
I put a space in the table name and now I can not delete it. so I'm trying to put \ to avoid it, but failed:
root@summary :reports> drop table xd_2012_02_\ ua; ERROR: Unknown command '\ '. ERROR 1064 (42000): 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 '\ ua' at line 1
source share