Update lectures/07-sql/nulls/rows.go

This commit is contained in:
Fedor Korotkiy 2022-03-31 15:59:32 +00:00
parent fb13bf5eb5
commit 391cd002d8

View file

@ -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)
}