Golang query multiple databases with a JOIN <p>Using the golang example below, how can I query (JOIN) multiple databases. For example, I want to have the relation <code>db1.username.id = db2.comments.username_id</code>.</p> <pre><code>id := 123 var username string err := db.QueryRow("SELECT username FROM users WHERE id=?", id).Scan(&amp;username) switch { case err == sql.ErrNoRows: log.Printf("No user with that ID.") case err != nil: log.Fatal(err) default: fmt.Printf("Username is %s\n", username) } </code></pre>