I am trying to perform the following type of query in golang using the sql library:
rows, err := db.Query("select * from someTable where age = ? and hairColor = ?", age,haircolor)
But get the following sort of error:
Error occured: sql: expected 1 arguments, got 2
How do I perform an SQL select statement in golang where there are multiple values in the WHERE clause?
dbare you using?