detect datetime's precision
Posted by: Ben Zhou
Date: February 16, 2013 02:38PM

Anybody knows how to use resultsetmetadata to detect a table's column's datetime precision?

e.g. I have a table 'A', and table 'A' has a column 'login', which is datetime type. I want to use resultsetmetadata in my java application to see if the 'login' column has been defined as datetime or datetime(6).

By the way, datetime (0-6) is supportted from mysql 5.6.4

Thanks,
Ben

Options: ReplyQuote


Subject
Written By
Posted
detect datetime's precision
February 16, 2013 02:38PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.