func (*DB) Query

func (db *DB) Query(query string, args ...interface{}) (*Rows, error)

Query 执行一个返回行的查询,通常是一个 SELECT语句。args参数用于SQL语句中的任何占位符参数。