I am trying to execute a SQL statement in the code below. However, sqlRes
is unused and therefore cannot be compiled. I do not need the variable, but I need to declare it because Exec()
returns multiple values.
How do I approach this?
stmt, err := db.Prepare("INSERT person SET name=?")
sqlRes, err := stmt.Exec(person.Name)