Error: table name specified more than Once

Asked

Viewed 1,385 times

0

I created a column included in the app table, it works to record the purchase date of the app and I will have to update the old records with the user creation date. I made a query to solve the problem, but postgresql accuses an error:

ERROR: table name "app" specified more than Once

This is my query:

UPDATE app
  SET app.inclusao = usuario.inclusao
  FROM app, usuario
  WHERE app.usuario = usuario.codigo

How do I fix this?

1 answer

2


update app
    set inclusao = usuario.inclusao
    from usuario
    where app.usuario = usuario.codigo
  • ERROR: column "app" of relation "app" does not exist didn’t work.

  • Now go, typed wrong app. ;D

  • 1

    @Haxz if the answer solved your problem, mark it as correct.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.