Oracle: how to add minutes to a timestamp?
问题 I need to add 30 minutes to values in a Oracle date column. I do this in my SELECT statement by specifying to_char(date_and_time + (.000694 * 31) which works fine most of the time. But not when the time is on the AM/PM border. For example, adding 30 minutes to 12:30 [which is PM] returns 1:00 which is AM. The answer I expect is 13:00 . What's the correct way to do this? 回答1: All of the other answers are basically right but I don't think anyone's directly answered your original question.