这个问题解决了
可是有新的问题了
就是向表中插入选择的几个字段,我老是写不对,
String sqll;
sqll="insert into people(room_num,people_name,people_num,days,money) values('"; //
sqll=sqll+jtroom_num.getText().trim()+"','";
sqll=sqll+jtpeople_name.getText().trim()+"','";
sqll=sqll+jtpeople_num.getText().trim()+"','";
sqll=sqll+jtdays.getText().trim()+"','";
sqll=sqll+jroom_type.getSelectedItem().toString().trim()+"','";
sqll=sqll+jtmoney.getText().trim()+"','";
sqll=sqll+jyear.getSelectedItem().toString().trim()+jmonth.getSelectedItem().toString().trim()+jdate.getSelectedItem().toString().trim()+"')";
这个有什么地方错吗?