未验证 提交 d970f1d7 编写于 作者: A astaxie 提交者: GitHub

Merge pull request #1069 from keets2012/patch-1

fix insert phase error
......@@ -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.
先完成此消息的编辑!
想要评论请 注册