Don’t put NULL
inside quotes in your update statement. This should work:
UPDATE table SET field = NULL WHERE something = something
More Related Contents:
- SQL Query needed for fetch value from Two identical table but not fully identical table
- How to create a MySQL hierarchical recursive query?
- Error related to only_full_group_by when executing a query in MySql
- SQL split values to multiple rows
- How to reset AUTO_INCREMENT in MySQL
- How to declare a variable in MySQL?
- MySQL Query GROUP BY day / month / year
- MySQL Cannot Add Foreign Key Constraint
- Grouping into interval of 5 minutes within a time range
- SQL counting all rows instead of counting individual rows
- Convert timestamp to date in MySQL query
- Update a column value, replacing part of a string
- MySQL Like multiple values
- In MySQL, should I quote numbers or not?
- Matching all values in IN clause
- MySQL add days to a date
- mysql dynamic query in stored procedure
- Check for x consecutive days – given timestamps in database
- How to alter a column and change the default value?
- How to select one row randomly taking into account a weight?
- MySQL Stored Procedures not working with SELECT (basic question)
- MySQL query, MAX() + GROUP BY
- MySQL export into outfile : CSV escaping chars
- Simple Random Samples from a MySQL Sql database
- ALTER table – adding AUTOINCREMENT in MySQL
- sql like operator on integer
- MySQL Select minimum/maximum among two (or more) given values
- MySQL – SELECT * INTO OUTFILE LOCAL ?
- How do you force mysql LIKE to be case sensitive? [duplicate]
- ORDER BY alphabet first then follow by number