我在奖励表中插入值时遇到问题。尝试解决它并找到其他帖子,但我找不到任何解决方案。
String sql1 = "INSERT INTO rewards(project_id, 1st_reward,1st_description, 2nd_reward, 2nd_description, 3rd_reward, 3rd_description, 4th_reward, 4th_description, 5th_reward, 5th_description) "
+ "values('"
+ projectId
+ "','"
+ rwd1.getText().toString()
+ "','"
+ rwd1Desc.getText().toString()
+ "','"
+ rwd1.getText().toString()
+ "','"
+ rwd2.getText().toString()
+ "','"
+ rwd2Desc.getText().toString()
+ "','"
+ rwd3.getText().toString()
+ "','"
+ rwd3Desc.getText().toString()
+ "','"
+ rwd4.getText().toString()
+ "','"
+ rwd4Desc.getText().toString()
+ "','"
+ rwd5.getText().toString()
+ "','"
+ rwd5Desc.getText().toString()
+ "')";
stmt.executeUpdate(sql1);