problem with addtime() function
This is samiuddin. I am having table in mysql which contain two fields like pickupdate and pickuptime.
I am using the query on this table to add time
suppose the pickupdate column is having the value as 2012-08-06 and pickuptime is having the value as 23:00:00
select addtime('pickupdate pickuptime','2:00:00') from xyz ;
but it is not adding the time, it is giving the result as 2:00:00
but when I am writing the function with direct values it is working properl.
select addtime('2012-08-06 23:00:00' ,'2:00:00')
it is giving the result as 201208-07 1:00:00
please help me out to resolve the issue
addtime() function problem
Originally Posted by r937
Thanks for your reply.
I even tried add only time column.
addtime('pickuptime','2:00:00') the value in the pickup time is 4:00:00,
but then also it is not working. It is giving only 2:00:00
please help me out
I got the solution by concatenating the two columns
Thanks for your reply. I got the solution I used concat function on those two columns and I got the expected result.
Originally Posted by guido2004