Mysql从只显示一次的表中删除
我想从表中删除只出现一次的行。 我试过这个,但它给了我错误Mysql从只显示一次的表中删除,mysql,Mysql,我想从表中删除只出现一次的行。 我试过这个,但它给了我错误 delete from trans where nol in (select nol from trans T1 group by T1.nol having count(*) = 1) 在MySQL中,您不能修改SELECT部件中使用的同一个表。 对于解决方法,您需要将子查询包装到表别名中 示例查询: delete from trans where nol in (SELECT nol FROM (select nol f
delete from trans where nol in (select nol from trans T1 group by T1.nol having count(*) = 1)
在MySQL中,您不能修改SELECT部件中使用的同一个表。 对于解决方法,您需要将子查询包装到表别名中 示例查询:
delete from trans
where nol in (SELECT nol FROM
(select nol from trans T1 group by T1.nol having count(*) = 1) t)
在MySQL中,您不能修改SELECT部件中使用的同一个表。 对于解决方法,您需要将子查询包装到表别名中 示例查询:
delete from trans
where nol in (SELECT nol FROM
(select nol from trans T1 group by T1.nol having count(*) = 1) t)
post错误消息,执行此查询时出现的错误?post错误消息,执行此查询时出现的错误?