Lets just say I have a row which looks like this:
ID(Long), serialNumber(Long)
1 123
I want to update this row with (1,null)
.
How can I do it? So far from my research, I save that on Update, but it ignores null values.
Lets just say I have a row which looks like this:
ID(Long), serialNumber(Long)
1 123
I want to update this row with (1,null)
.
How can I do it? So far from my research, I save that on Update, but it ignores null values.
Try this one. It works:
UPDATE your_table
SET
serialNumber = null
WHERE ID = 1;