Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CallableStatement cst = con.prepareCall("{call SP_NewMsgCounter(?,?,?)}");
- Calendar cal = Calendar.getInstance();
- SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy hh:mm:ss.SSS");
- String date = sdf.format(cal.getTime());
- cst.setInt(1,userId);
- cst.setLong(2,taskId);
- cst.setString(3, date);
- rs = cst.executeQuery();
- while(rs.next()){
- int userId1 = rs.getInt(1);
- long taskid1 = rs.getLong(2);
- String dat = rs.getString(3);
- System.out.println("The UserId Is :"+userId1);
- System.out.println("The TaskId Is :"+taskid1);
- System.out.println("The Server Is :"+dat);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement