我知道如何“设置”它,但我该如何添加呢?如...
// Add 1 minute to the current 'time' object
try {
Connection con = DriverManager.getConnection(url, user, password);
String sql = "UPDATE Table "
+ "SET 'Time Field' = 'Time Field' + ? "
+ "WHERE 'User Column' = 'Random Name'";
PreparedStatement statement = con.prepareStatement(sql);
statement.setTime(0, new Time(60000));
} catch (SQLException e) {
e.printStackTrace();
}
我确定我必须使用“ADDITEM(expr1,expr2)”函数,但我该怎么做呢?我觉得这不像只是将它输入到我的字符串中那么容易。