Update lectures/07-sql/nulls/rows.go
This commit is contained in:
parent
fb13bf5eb5
commit
391cd002d8
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ import (
|
|||
)
|
||||
|
||||
func Results(ctx context.Context, db *sql.DB) {
|
||||
rows, err := db.QueryContext(ctx, "SELECT id, name FROM users WHERE id = $1", 1)
|
||||
rows, err := db.QueryContext(ctx, "SELECT name FROM users WHERE id = $1", 1)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue