If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > millisec support in MYSQL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-22-04, 13:29
swapnait swapnait is offline
Registered User
 
Join Date: Jul 2004
Posts: 1
millisec support in MYSQL

Hi all,

I would like to know if there is millisec support in MySql. I am new to mysql and I was asked to find about this.


Thanks a lot,
Swapna
Reply With Quote
  #2 (permalink)  
Old 07-28-04, 20:21
yellowmarker yellowmarker is offline
Registered User
 
Join Date: Jul 2004
Location: Dundee, Scotland
Posts: 107
In short I'd say no.

Are we talking about say storing millisec from PHP in a MySQL integer field? Or are we talking about manipulating millisec using MySQL functions?

http://dev.mysql.com/doc/mysql/en/TIME.html

You can use the following "relaxed'' syntax: 'HH:MMS.fraction'. Note that MySQL doesn't yet store the fraction part.

mysql> SELECT EXTRACT(MICROSECOND FROM '2003-01-02 10:30:00.00123');
-> 123

EXTRACT() was added in MySQL 3.23.0.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On