-2

Please correct me but I've located a small error on the Mariadb documentation on https://mariadb.com/kb/en/range-partitioning-type/

The second example under Use cases has a superfluous UNIX_TIMESTAMP in the PARTION BY RANGE line. As the column timestamp already is a unix timestamp UNIX_TIMESTAMP(timestamp) will not work, will it? The line should read

 PARTITION BY RANGE( TimeStamp )

Not sure how to get in touch with the ppl. that write the manual.

theking2
  • 179
  • 1
  • 1
  • 9

1 Answers1

2

No, you are wrong. Check the documentation: https://mariadb.com/kb/en/timestamp/

This is a TIMESTAMP:

A timestamp in the format YYYY-MM-DD HH:MM:SS.ffffff.

This is UNIX_TIMESTAMP:

1374490205

Swisstone
  • 6,725
  • 7
  • 22
  • 32