This Example create mysql retrieves and displays TIME values in 'HH:MM:SS' format but HHMMSS format it makes sense as a time for example "101112".
Database Table "timeTable":
| CREATE TABLE `timetable` ( `id` bigint(20) NOT NULL auto_increment, `time_field` time default NULL, PRIMARY KEY (`id`) ) |
Query to select time values :
| select time_field from timeTable; |
Output :
| +------------+ | time_field | +------------+ | 10:10:10 | +------------+ 1 row in set (0.00 sec) |
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: Mysql Time Type
Post your Comment