Hello;
Trying to calculate the time from two time fields, both fields are time fields in the table (mysql database). This works when I just query the table from mysql, but can't get it to work in cpp. The Time column is for the total time spent which will be like 2:00 for two hours.
SELECT starttime, endtime,sec_to_time(time_to_sec(end_time) - time_to_sec(start_time))AS Time ");
FROM ots_report
When I run the query in cpp, I get this message
Type Mismatch for field 'Time' expecting: String actual: Time
Any help
Thanks
Heydyrtt
Trying to calculate the time from two time fields, both fields are time fields in the table (mysql database). This works when I just query the table from mysql, but can't get it to work in cpp. The Time column is for the total time spent which will be like 2:00 for two hours.
SELECT starttime, endtime,sec_to_time(time_to_sec(end_time) - time_to_sec(start_time))AS Time ");
FROM ots_report
When I run the query in cpp, I get this message
Type Mismatch for field 'Time' expecting: String actual: Time
Any help
Thanks
Heydyrtt