func (*Tx) Exec

func (tx *Tx) Exec(query string, args ...interface{}) (Result, error)

执行不返回行的SQL语句。例如: INSERT 和 UPDATE。