Re: [go-nuts] How to implement In Golang

2016-09-19 Thread James
Try this tutorial: http://go-database-sql.org/ On 20 September 2016 at 03:42, kumargv wrote: > import MySQLdb > > conn = MySQLdb.Connect( > host='localhost', user='user', > passwd='secret', db='test') > cursor = conn.cursor() > cursor.execute("SELECT this,that FROM foobar") > rows = curs

[go-nuts] How to implement In Golang

2016-09-19 Thread kumargv
import MySQLdb conn = MySQLdb.Connect( host='localhost', user='user', passwd='secret', db='test') cursor = conn.cursor() cursor.execute("SELECT this,that FROM foobar") rows = cursor.fetchall() cursor.close() conn.close() I am unable to Implement The above code in golang Please suggest