shad-go/lectures/07-sql/nulls/insert_null.go
2020-04-08 22:20:23 +03:00

6 lines
126 B
Go

var name sql.NullString
db.ExecContext(
ctx,
"INSERT INTO users(name) VALUES(@name)"),
sql.Named("name", name),
)