I can´t use alias in sql delete

前端 未结 2 897
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-19 17:44

I tried execute this sql sentence

delete 
        from reclamo r
        where exists ( select 1 from reclamo r
                        join cliente c on r.c         


        
2条回答
  •  情书的邮戳
    2021-01-19 18:27

    Don't use an alias. This is equivalent logic and will work fine.

    delete from reclamo
    where cod_cliente in 
    (select cod_cliente
    from cliente c join localidad l on c.cod_localidad = l.cod_localidad
    where l.descripcion = 'San Justo');
    

提交回复
热议问题