Closed gzw13999 closed 9 years ago
s, err := models.Db.Prepare(“INSERT INTO topic VALUES (?,?)”)
s.Exec(receivetime.Format("2006-01-02 15:04"),completetime.Format("2006-01-02 15:04"))
successful!!!!
.Format("2006-01-02 15:04") But such accuracy is not enough
thank
id is GUID uniqueidentifier [receivetime], [completetime] is datetime
INSERT INTO [topic]([id],[receivetime], [completetime]) VALUES ('03fc4c83-dae6-4273-aae9-fb50c30248ab','2015-01-27 19:56:42.798', '2015-01-27 19:56:45.792') successful!!!!
s, err := models.Db.Prepare(“INSERT INTO [topic]([id],[receivetime], [completetime]) VALUES (?,?,?)”)
s.Exec(id,receivetime,completetime)
failure???