import (
  "sql"
  "fmt"
)

db, _ := sql.Open(...)
commondSql := 'select * from table where 1 limit1'
var id
var name
var time
rows, _ := db.Query(commondSql)
rows.Next()
rows.Scan(&id, &name, &time)
fmt.Println(id, name, time)

  

相关文章:

  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-31
  • 2021-06-12
猜你喜欢
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2021-12-30
相关资源
相似解决方案