Skip to content

Commit 65e50c9

Browse files
author
GeorgeYan
committed
change departname to department
1 parent 412d6fd commit 65e50c9

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

de/05.2.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ In the following sections, I'll use the same database table structure for differ
2323
CREATE TABLE `userinfo` (
2424
`uid` INT(10) NOT NULL AUTO_INCREMENT,
2525
`username` VARCHAR(64) NULL DEFAULT NULL,
26-
`departname` VARCHAR(64) NULL DEFAULT NULL,
26+
`department` VARCHAR(64) NULL DEFAULT NULL,
2727
`created` DATE NULL DEFAULT NULL,
2828
PRIMARY KEY (`uid`)
2929
);
@@ -43,7 +43,7 @@ The following example shows how to operate on a database based on the `database/
4343
checkErr(err)
4444

4545
// insert
46-
stmt, err := db.Prepare("INSERT userinfo SET username=?,departname=?,created=?")
46+
stmt, err := db.Prepare("INSERT userinfo SET username=?,department=?,created=?")
4747
checkErr(err)
4848

4949
res, err := stmt.Exec("astaxie", "研发部门", "2012-12-09")

en/05.2.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In the following sections, I'll use the same database table structure for differ
2222
CREATE TABLE `userinfo` (
2323
`uid` INT(10) NOT NULL AUTO_INCREMENT,
2424
`username` VARCHAR(64) NULL DEFAULT NULL,
25-
`departname` VARCHAR(64) NULL DEFAULT NULL,
25+
`department` VARCHAR(64) NULL DEFAULT NULL,
2626
`created` DATE NULL DEFAULT NULL,
2727
PRIMARY KEY (`uid`)
2828
);
@@ -42,7 +42,7 @@ The following example shows how to operate on a database based on the `database/
4242
checkErr(err)
4343

4444
// insert
45-
stmt, err := db.Prepare("INSERT userinfo SET username=?,departname=?,created=?")
45+
stmt, err := db.Prepare("INSERT userinfo SET username=?,department=?,created=?")
4646
checkErr(err)
4747

4848
res, err := stmt.Exec("astaxie", "研发部门", "2012-12-09")

es/05.2.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ En las siguientes secciones usaré las misma estructura de tablas para diferente
2222
CREATE TABLE `userinfo` (
2323
`uid` INT(10) NOT NULL AUTO_INCREMENT,
2424
`username` VARCHAR(64) NULL DEFAULT NULL,
25-
`departname` VARCHAR(64) NULL DEFAULT NULL,
25+
`department` VARCHAR(64) NULL DEFAULT NULL,
2626
`created` DATE NULL DEFAULT NULL,
2727
PRIMARY KEY (`uid`)
2828
);
@@ -42,7 +42,7 @@ El siguiente ejemplo muestra como operar en bases de datos con los estándares d
4242
checkErr(err)
4343
4444
// insertar
45-
stmt, err := db.Prepare("INSERT userinfo SET username=?,departname=?,created=?")
45+
stmt, err := db.Prepare("INSERT userinfo SET username=?,department=?,created=?")
4646
checkErr(err)
4747
4848
res, err := stmt.Exec("astaxie", "研发部门", "2012-12-09")

ja/05.2.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ GoではMySQLをサポートしたドライバが現在比較的多く、以下
2020
CREATE TABLE `userinfo` (
2121
`uid` INT(10) NOT NULL AUTO_INCREMENT,
2222
`username` VARCHAR(64) NULL DEFAULT NULL,
23-
`departname` VARCHAR(64) NULL DEFAULT NULL,
23+
`department` VARCHAR(64) NULL DEFAULT NULL,
2424
`created` DATE NULL DEFAULT NULL,
2525
PRIMARY KEY (`uid`)
2626
)
@@ -48,7 +48,7 @@ GoではMySQLをサポートしたドライバが現在比較的多く、以下
4848
checkErr(err)
4949

5050
//データの挿入
51-
stmt, err := db.Prepare("INSERT userinfo SET username=?,departname=?,created=?")
51+
stmt, err := db.Prepare("INSERT userinfo SET username=?,department=?,created=?")
5252
checkErr(err)
5353

5454
res, err := stmt.Exec("astaxie", "研究開発部門", "2012-12-09")

pt-br/05.2.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ In the following sections, I'll use the same database table structure for differ
2323
CREATE TABLE `userinfo` (
2424
`uid` INT(10) NOT NULL AUTO_INCREMENT,
2525
`username` VARCHAR(64) NULL DEFAULT NULL,
26-
`departname` VARCHAR(64) NULL DEFAULT NULL,
26+
`department` VARCHAR(64) NULL DEFAULT NULL,
2727
`created` DATE NULL DEFAULT NULL,
2828
PRIMARY KEY (`uid`)
2929
);
@@ -43,7 +43,7 @@ The following example shows how to operate on a database based on the `database/
4343
checkErr(err)
4444

4545
// insert
46-
stmt, err := db.Prepare("INSERT userinfo SET username=?,departname=?,created=?")
46+
stmt, err := db.Prepare("INSERT userinfo SET username=?,department=?,created=?")
4747
checkErr(err)
4848

4949
res, err := stmt.Exec("astaxie", "研发部门", "2012-12-09")

ru/05.2.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
CREATE TABLE `userinfo` (
2424
`uid` INT(10) NOT NULL AUTO_INCREMENT,
2525
`username` VARCHAR(64) NULL DEFAULT NULL,
26-
`departname` VARCHAR(64) NULL DEFAULT NULL,
26+
`department` VARCHAR(64) NULL DEFAULT NULL,
2727
`created` DATE NULL DEFAULT NULL,
2828
PRIMARY KEY (`uid`)
2929
);
@@ -44,7 +44,7 @@
4444
checkErr(err)
4545

4646
// вставка
47-
stmt, err := db.Prepare("INSERT userinfo SET username=?,departname=?,created=?")
47+
stmt, err := db.Prepare("INSERT userinfo SET username=?,department=?,created=?")
4848
checkErr(err)
4949

5050
res, err := stmt.Exec("astaxie", "研发部门", "2012-12-09")

zh/05.2.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Go中支持MySQL的驱动目前比较多,有如下几种,有些是支持data
2121
CREATE TABLE `userinfo` (
2222
`uid` INT(10) NOT NULL AUTO_INCREMENT,
2323
`username` VARCHAR(64) NULL DEFAULT NULL,
24-
`departname` VARCHAR(64) NULL DEFAULT NULL,
24+
`department` VARCHAR(64) NULL DEFAULT NULL,
2525
`created` DATE NULL DEFAULT NULL,
2626
PRIMARY KEY (`uid`)
2727
);
@@ -51,7 +51,7 @@ func main() {
5151
checkErr(err)
5252

5353
//插入数据
54-
stmt, err := db.Prepare("INSERT userinfo SET username=?,departname=?,created=?")
54+
stmt, err := db.Prepare("INSERT userinfo SET username=?,department=?,created=?")
5555
checkErr(err)
5656

5757
res, err := stmt.Exec("astaxie", "研发部门", "2012-12-09")

0 commit comments

Comments
 (0)