func (*Stmt) QueryContext¶
func (s *Stmt) QueryContext(ctx context.Context, args ...interface{}) (*Rows, error)
使用提供的上下文和给定的参数执行一个已准备好的查询语句,并以 * Rows 的形式返回查询结果。
func (s *Stmt) QueryContext(ctx context.Context, args ...interface{}) (*Rows, error)
使用提供的上下文和给定的参数执行一个已准备好的查询语句,并以 * Rows 的形式返回查询结果。