mysql 使用子语句查询作为删除条件

mysql中You can't specify target table for update in FROM clause错误

delete from `comments` where uid = 
(
    select  c2.uid from 
    (
        select c2.uid from comments as c2 where c2.uid="52cadcce2da54d22a68d003e7cc27381" limit 0,1
    )  c2
)

猜你喜欢

转载自1358440610-qq-com.iteye.com/blog/2153762