db.Exec(query string, args ...interface{})

 

Db.Exec(`CREATE TABLE IF NOT EXISTS STU(ID int(8) PRIMARY KEY AUTO_INCREMENT,NAME char(50))`)
 
其中query中可以使用?来做替换符.

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2021-08-26
  • 2021-10-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
  • 2021-11-18
相关资源
相似解决方案