[go-nuts] Show rows affected from query

2019-10-03 Thread Tamás Gulácsi
Query is for SELECT. Everything else needs Exec. -- 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. To view this discussion

[go-nuts] Show rows affected from query

2019-10-03 Thread Rich
I've written a program that allows users to put in MySQL queries and get results from it. Those queries can be selects, inserts, update, delete etc. I would a better sample of the code but currently the code is over 1000+ lines, but I do something like this: db,err :=sql.Open(mysql, loginCreds)