Created
November 22, 2018 01:53
-
-
Save shumon84/74ddcda1ca545cfd1fa3662668c7a7bb 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() // トランザクション開始 | |
stmt, _ := tx.Prepare("INSERT INTO hoge (id) VALUES (?)") | |
stmt.Exec("0000") | |
tx.Commit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment