質問編集履歴

1

?の個数をあわせました。

2021/06/12 03:06

投稿

junnokets
junnokets

スコア3

test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  下記のようにコードを打ち、フォームで値を入力すると
4
4
 
5
- SQLException:(conn=34) Could not set parameter at position 13 (values was ) Query - conn:34(M) - "insert into test values(?,?,?,?,?,?,?,?,?,?,?,?)"
5
+ SQLException:(conn=35) You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?,?,?,?,?,?,?,?,?,?,?,?,?,?)' at line 1 nullnullnullを登録しました。
6
6
 
7
7
  というエラーコードが出てしまいます。
8
8
 
@@ -148,7 +148,7 @@
148
148
 
149
149
  String sql = "insert into test(sei,mei,sei_f,mei_f,gender,year,month,day,post,pre,address,tell,mail,bikou) "
150
150
 
151
- + "values(?,?,?,?,?,?,?,?,?,?,?,?)";
151
+ + "values(?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
152
152
 
153
153
  //実行するSQL文と7パラメータ
154
154