delete from public."YH_XQ"
where ctid =ANY(ARRAY(select ctid
from (select row_number()over(PARTITION BY lj_id),ctid from public."YH_XQ") x where x.row_number>1))
where ctid =ANY(ARRAY(select ctid
from (select row_number()over(PARTITION BY lj_id),ctid from public."YH_XQ") x where x.row_number>1))