未验证 提交 50736b1a 编写于 作者: K kidme 提交者: GitHub

fix insert phase error

上级 bdd166b8
......@@ -51,7 +51,7 @@ func main() {
checkErr(err)
//插入数据
stmt, err := db.Prepare("INSERT userinfo SET username=?,department=?,created=?")
stmt, err := db.Prepare("INSERT INTO userinfo SET username=?,department=?,created=?")
checkErr(err)
res, err := stmt.Exec("astaxie", "研发部门", "2012-12-09")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册