change departname to department

This commit is contained in:
GeorgeYan
2018-04-04 11:06:30 +08:00
parent 412d6fd441
commit 65e50c9dac
7 changed files with 14 additions and 14 deletions

View File

@@ -20,7 +20,7 @@ GoではMySQLをサポートしたドライバが現在比較的多く、以下
CREATE TABLE `userinfo` (
`uid` INT(10) NOT NULL AUTO_INCREMENT,
`username` VARCHAR(64) NULL DEFAULT NULL,
`departname` VARCHAR(64) NULL DEFAULT NULL,
`department` VARCHAR(64) NULL DEFAULT NULL,
`created` DATE NULL DEFAULT NULL,
PRIMARY KEY (`uid`)
)
@@ -48,7 +48,7 @@ GoではMySQLをサポートしたドライバが現在比較的多く、以下
checkErr(err)
//データの挿入
stmt, err := db.Prepare("INSERT userinfo SET username=?,departname=?,created=?")
stmt, err := db.Prepare("INSERT userinfo SET username=?,department=?,created=?")
checkErr(err)
res, err := stmt.Exec("astaxie", "研究開発部門", "2012-12-09")