I have integer fields in a table. The POSTs are send by a complicated JavaScript. They send empty string like \"\" but as you guess MySQL doesn\'t allow emty strings in inte
Assuming that the column allows for NULL values, you must explicitly tell MySQL to use a value of NULL, rather than passing an empty string (which is cast to 0):