Update with join with Drizzle
I am using
Postgres
. Table Author has a 1 to 1 relations with table User. Author table has field userId
that links to the primary key in the User table.
Is there a way to write ONE update query to set the penName
field in the Author table, but return all fields from both the Author and the User tables. Right now I need to write two queries
Or is two queries the standard way?0 Replies