3
I need to make a update
in the database in which zero 30 thousand records, however I need to reset only the record of one of the columns.
Example table: cd_product|ds_product|pr_product|dt_update
This table contains the 30thousand records and I need to reset all the dt_atualizacao
, but only her, the other columns cannot be changed.
How can I ride this update
?
Is there anything you are not saying? I ask this because it is something extraordinarily trivial to do this. What kind of column is this? DATE? You want it to be void or what value?
– Maniero
The reason is that there is a new routine that reads this table and for each row without the dt_update a new cd_group information will be inserted. The routine is already ready and now I just need to clean all the dt_updates for the routine to work. The column is type DATETIME and I need it to be empty.
– Igor
What is zero? What value should be?
– Maniero
Pardon the confusion, it’s to be null.
– Igor