回答編集履歴
1
syuusei
test
CHANGED
@@ -16,19 +16,25 @@
|
|
16
16
|
|
17
17
|
pstmt.setString(1,"3",1,2);
|
18
18
|
|
19
|
+
int num = pstmt.executeUpdate();
|
20
|
+
|
19
21
|
PreparedStatement pstmt = conn.prepareStatement(sql);
|
20
22
|
|
21
23
|
pstmt.setString(2,"オレンジジュース",4,2);
|
24
|
+
|
25
|
+
int num = pstmt.executeUpdate();
|
22
26
|
|
23
27
|
PreparedStatement pstmt = conn.prepareStatement(sql);
|
24
28
|
|
25
29
|
pstmt.setString(3,"2",8,56);
|
26
30
|
|
31
|
+
int num = pstmt.executeUpdate();
|
32
|
+
|
27
33
|
PreparedStatement pstmt = conn.prepareStatement(sql);
|
28
34
|
|
29
35
|
pstmt.setString(4,"2",6,4);
|
30
36
|
|
31
|
-
|
37
|
+
int num = pstmt.executeUpdate();
|
32
38
|
|
33
39
|
と書けば通ると思います。
|
34
40
|
|