How to use Join in UPDATE?

Asked

Viewed 32 times

1

This is my command:

UPDATE address SET lat = :latitude, lng = :longitude WHERE menu_id = :menu

Only that menu_id is not from the same table.

How can I do?

  • your database is mysql?

  • In which database? the syntax can vary from one to another.

  • No, my database is the postgres

  • 2
  • The data I have in common between the menu table and the address table is the address_id field

No answers

Browser other questions tagged

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