Last active
November 22, 2018 01:44
-
-
Save shumon84/f83543832a3df58934b1c45fff32da52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tx, _ := db.Begin() | |
tx.Exec("INSERT INTO hoge (id) VALUES (?)", "0000") | |
tx.Query("SELECT * FROM hoge WHERE id = ?", "0000") | |
tx.QueryRow("SELECT * FROM hoge") | |
tx.Commit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment