Quantcast
Channel: MySQL Forums - Connector/J, JDBC and Java
Viewing all articles
Browse latest Browse all 884

Detect datetime precision (no replies)

$
0
0
I am looking for someway to tell the difference between datetime and datetime(3) using the JDBC DatabaseMetaData. I tried the following

rs = connection.getMetaData().getColumns(null, null, tableName, null);
while (rs.next()) { ... }

and looking at all the info but I didn't see any difference between two columns with different precision.

Viewing all articles
Browse latest Browse all 884

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>