MySQL drop a Table Named "trigger"

126 views Asked by At

I just created a MySQL Table called "trigger". The Problem now: I want to "drop table trigger;" This is not working. (Syntax error...) because it recognizes trigger not as name but as a trigger.

How do I do drop a table Named "trigger"?

1

There are 1 answers

0
Mureinik On BEST ANSWER

You can escape a name with backticks. In your case:

DROP TABLE `trigger`;