String sql="insert into tablelOne(c_date,order_no,table_no,ord_menu,quantity,customer_name,captain_name,table_status) values (?,?,?,?,?,?,?,?)";`
PreparedStatement pstmt=DbModel.preparedStatement(con, sql);
pstmt.setDate(1, (java.sql.Date) sqlDate);
pstmt.setLong(2,Order_no);
pstmt.setLong(3,table_no);
pstmt.setString(4,Order_Menu_Name);
pstmt.setLong(5,item_Quantity);
pstmt.setString(6,customer_name);
pstmt.setString(7,Captain_name);
pstmt.setLong(8,table_book_status);
之后我使用相同的值插入到另一个tableTwo中写入该查询的位置。