query := fmt.Sprintf("SELECT ....
infos = make([]*struct, 0, 10)
err = s.db.GetContext(ctx, &infos, query)

  返回错误:

scannable dest type slice with >1 columns (4) in result

  解决办法:

替换

 

GetContext

  为:

SelectContext

  


 
                    
            
                

相关文章:

  • 2021-12-15
  • 2022-12-23
  • 2021-11-12
  • 2021-08-16
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2021-05-30
  • 2021-07-31
  • 2021-07-14
相关资源
相似解决方案