mysql – How to update the same record in a table

Good evening I have a table with primary key composed.

create data table
(
I dint,
primary key (id)
)

drop table Status_Data;

create table Datos_estatus
(
int_police id,
int status,
Primary key (policy_id, status)

)

in table Datos_estatus

Data_status
id_poliza status
1 2
fifteen
1 3
2 4
3 6

I need to change the state = 8 of all the IDs with the value = 1 in the table Datos_estatus

I tried to update and merge internally, but it does not work for me.
Thank you.