Created
April 14, 2019 02:21
-
-
Save razeencheng/9099293df9db6b7cad5512fbc5239430 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| var userid int | |
| err := db.QueryRow(`INSERT INTO users(name, favorite_fruit, age) | |
| VALUES('beatrice', 'starfruit', 93) RETURNING id`).Scan(&userid) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment