TX!, This works for me On Tuesday, March 12, 2013 at 2:38:15 AM UTC+5:30, Frank Blechschmidt wrote: > > Found it. > > Working solution: > var result [][]string > rows := repo.dbHandler.Query(sQuery) > cols := rows.Columns() > pointers := make([]interface{}, len(cols)) > container := make([]string, len(cols)) > for i, _ := range pointers { > pointers[i] = &container[i] > } > for rows.Next() { > rows.Scan(pointers...) > result = append(result, container) > } > > > > > > > On Monday, March 11, 2013 9:34:49 PM UTC+1, Frank Blechschmidt wrote: >> >> Hey! >> >> How to put SQL rows into an array of string arrays? (/convert SQL result >> to string matrix) >> >> Thanks and best regards >> Frank >> >
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.