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
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