sqlCommand := fmt.Sprintf("SELECT this, that FROM table WHERE theID='1'")
rows, err := db.Query(sqlCommand)
And now I would like to search again in "rows" to populate my Slice, like that :
slice[1][3] = rows."where 'this'=slice[][2]"
slice[2][3] = rows."where 'this'=slice[][2]"
slice[3][3] = rows."where 'this'=slice[][2]"slice[4][3] = rows."where 'this'=slice[][2]"etc...Tell me if it is too confuse/not clear, I will try to re-phrase it.Thank you
--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/J_Ye4Dl653U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thank you. If I understand it correctly, once the query is executed I will get all corresponding rows, in a certain order.And then, how to use the result. Let say I get 3 rows as a result. And I want to get the value of "column A" in the row where "column B" = something ?
--