Home Sql Sqldate Mysql Time Type



Mysql Time Type
Posted on: January 20, 2009 at 12:00 AM
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".

Mysql Time Type

     

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)

Related Tags for Mysql Time Type:
sqlmysqlcormformtimemakeformatdisplayvaluethiscreateforieexamplevaluesexameitmmsspltrieiminrmasmplaytrispesretrievemexaxampsspdisplaysatmykishmmimempleaandvassrith12aludisppleplndo


More Tutorials from this section

Ask Questions?    Discuss: Mysql Time Type  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

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.