From the docs:
Identifiers may begin with a digit but unless quoted may not consist solely of digits.
Which means you must quote it with back ticks like `25`:
UPDATE table SET `25`='100' WHERE id='1'
More Related Contents:
- add column to mysql table if it does not exist
- MySQL: ALTER TABLE if column not exists
- Adding multiple columns AFTER a specific column in MySQL
- Using ALTER to drop a column if it exists in MySQL
- SELECTING with multiple WHERE conditions on same column
- grant remote access of MySQL database from any IP address
- Should MySQL have its timezone set to UTC?
- JDBC batch insert performance
- SQL – Update multiple records in one query
- How to find gaps in sequential numbering in mysql?
- Can I create view with parameter in MySQL?
- MySQL: Invalid use of group function
- Exporting results of a Mysql query to excel?
- OUTPUT Clause in MySQL
- use mysql SUM() in a WHERE clause
- Sorting by date & time in descending order?
- passing LIMIT as parameters to MySQL sproc
- Case statement in MySQL
- MySQL: Inner join vs Where [duplicate]
- MySQL ‘UPDATE ON DUPLICATE KEY’ without a unique column?
- Selecting from two tables with inner join and limit [duplicate]
- Import MySQL dump to PostgreSQL database
- How to select data where a field has a min value in MySQL?
- Database corruption with MariaDB : Table doesn’t exist in engine
- How to SELECT by MAX(date)?
- MYSQL declaring variables
- get a recursive parent list
- MYSQL – Split Data Into Multiple Rows
- MySQL: Computed Column
- Default sort-ordering in MySQL (ALTER TABLE … ORDER BY …;)