HI,
How do you add three minutes to a date in mysql database ?
Add Minutes to a date
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Dec 19, 2011, 6:35 PM EST
Try like this,
select DATE_ADD(curdate(), INTERVAL 3 MINUTE);AartiRank #2,383 · 594 reputationPosted Dec 21, 2011, 12:08 AM EST
declare @minutes int
set @minutes =3
SELECT DATEADD(mi,@minutes,GETDATE()) as Date;
Prabhu RajaRank #861 · 2.6K reputationPosted Dec 21, 2011, 12:50 AM EST
SELECT ADDDATE(NOW(), INTERVAL 3 MINUTE) as required_date;
@Aarti, Your Query is fine but i think its works for Sql Server Only.
Arjun PanwarRank #254 · 9.9K reputationPosted Dec 21, 2011, 11:58 PM EST