Quote your ambiguous or “special” table names with a back tick:
INSERT INTO `e!` ...
Or better, don’t use special characters in table names to avoid such problems.
More Related Contents:
- Using LIMIT within GROUP BY to get N results per group?
- How to perform grouped ranking in MySQL
- Required to join 2 tables with their FKs in a 3rd table
- MySQL Trigger after update only if row has changed
- MySQL “WITH” clause
- Ordering by specific field value first
- MySQL “Group By” and “Order By”
- How to change the CHARACTER SET (and COLLATION) throughout a database?
- MySQL Query to select data from last week?
- Mysql::Error: Specified key was too long; max key length is 1000 bytes
- How can I get around MySQL Errcode 13 with SELECT INTO OUTFILE?
- Are there disadvantages to using a generic varchar(255) for all text-based fields?
- SQL Query to show nearest date?
- How do I use properly CASE..WHEN in MySQL
- Getting all parent rows in one SQL query
- How to insert data to MySQL with auto-incremented column(field)?
- SQL unique varchar case sensitivity question
- How do I count columns of a table
- Difference between two table structure
- Difference between SET autocommit=1 and START TRANSACTION in mysql (Have I missed something?)
- How to retrieve JSON data from MySQL?
- MySQL equivalent of Oracle’s SEQUENCE.NEXTVAL
- Why MySQL is giving error “Not allowed to return a result set from a function”?
- When to use a left outer join?
- MySQL 5.6 – DENSE_RANK like functionality without Order By
- DELETE FROM `table` AS `alias` … WHERE `alias`.`column` … why syntax error?
- What happens when I exhaust a bigint generated key? How to handle it?
- MySQL update statement to store ranking positions
- is there a length limit to group_concat or another reason why it would not work on a text field
- How to convert a varchar column type to date type without losing the dates