Skip to content
Prev 388628 / 398530 Next

RMariaDB returns a query without microseconds

Am Mon, 26 Jul 2021 16:07:24 +0000 (UTC)
schrieb Baki UNAL via R-help <r-help at r-project.org>:
Did you tell mariadb to include microsecond? I you just do
+----------+
| d        |
+----------+
| 09:55:02 |
+----------+
1 row in set (0.000 sec)

the fractional part is gone. But if you instead say
you get
+----------------------------+
| d                          |
+----------------------------+
| 2020-07-23 09:55:02.113000 |
+----------------------------+
1 row in set (0.001 sec)

And I also see this in R:
d
1 2020-07-23 09:55:02.113000