I've been working with a timesheet database, where all the employees of my 
small business enter in the hours they work on projects. I've been storing, 
for each record, a date of work, a start time, and a finish time. 

When I attempted to write a Perl script to display invoices, though, I ran 
into the issue that subtracting one time from another yields inconsistent 
results. Thus, I'm going to convert to datetime fields, which would store 
just the start and finish times as datetime. 

I'd like to automate the switchover, so I don't have to go through and 
maually update. I thought at first that "UPDATE time_worked SET dtstart = 
concat(datework, start);" would work, but that gave me a syntax error. I 
can't seem to find anything in the manual that would help, either. 

Is there any way to do this without going through and manually updating? I'd 
really appreciate any hints you could give. FYI, I'm running MySQL 3.23.37. 

Thanks,
Alex Kirk

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to