to perform a DB Query to UPDATE a user's age, which is done using a simple stmt, err := db.Prepare("UPDATE users SET age = 15, WHERE id = 1") and then stmt.Exec()
My question is, is there a way to, after updating, returning that row or a specific column? For example, is there a way to return that user's username column after the update without having to perform a second query?
no
Обсуждают сегодня