long longTimestamp = System.currentTimeMillis(); // 或者你有的任何long型时间戳
java.sql.Timestamp timestamp = new java.sql.Timestamp(longTimestamp);
// 现在你可以使用timestamp对象了
System.out.println("Converted Timestamp: " + timestamp);
long longTimestamp = System.currentTimeMillis(); // 或者你有的任何long型时间戳
java.sql.Timestamp timestamp = new java.sql.Timestamp(longTimestamp);
// 现在你可以使用timestamp对象了
System.out.println("Converted Timestamp: " + timestamp);