Inserting time in mysql database -


actually have time , exp field in mysql database.

i inserting current time in time field using : curtime(); want insert exp time in exp filed ie: current time + 2 hrs.. should show : time : 4:00:12am exp : 6:00:12am

you use addtime() this. example:

select addtime(curtime()', '02:00:00.0000')  

should work.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -