This is MySQL 5.7 column:
`date` datetime(6) NOT NULL
I can see milliseconds using console:
mysql> select * from teq_log_1;
+----+----------------------------+-------+---------+---------+
| id | date | level | message | details |
+----+----------------------------+-------+---------+---------+
| 4 | 2019-08-01 12:23:34.123457 | 2 | test | NULL |
+----+----------------------------+-------+---------+---------+
but I cannot see milliseconds in DBeaver client:
There is format option for the date
column (Right Click on date
column / View/Format / Data Formats ...):
There are Date
, Time
, Timestamp
& Number
types (w/o Datetime
). I set yyyy-MM-dd HH:mm:ss.sss
& yyyy-MM-dd HH:mm:ss.mmm
patterns but without result.
How can I display milliseconds/microseconds for datetime(6)
in DBeaver (v. 6.1.3)?
To change the data presentation in a certain column, right-click a cell in the column. Then, on the context menu, click View/Format -> Set {column name} format and click the presentation type name: The Transformer settings window opens showing the value in the chosen format.
DBeaver has both a community edition (CE) which is free and open-source and a commercial enterprise edition (EE). The community edition supports all kinds of relational databases such as MySQL, PostgreSQL, Oracle, etc. The enterprise edition, on the other hand, also supports NoSQL databases.
Turning on Use native date/time format
did it for me.
Using uppercase SSS
as in yyyy-MM-dd HH:mm:ss.SSS
shows milliseconds - you were using lowercase sss
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With