5.4节数据库语句有误
dddengyunjie opened this issue · comments
dddengyunjie commented
err = db.QueryRow("INSERT INTO userinfo(username,departname,created) VALUES($1,$2,$3) returning uid;", "astaxie", "研发部门", "2012-12-09").Scan(&lastInsertId) 中的departname应该为department