修改某条数据校验某个字段是否重复
SELECT
COUNT(t.id)
FROM
table
WHERE
t.is_deleted =false
and exists(
select column from table where id != #{id} and column=t.column
)
and t.column= #{param}