I am trying to enter a date from 1900 using java in sql, but I am getting an exception like:
com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect datetime value: '1900-01-01 00:00:00'
If you use TIMESTAMP to save dates, the minimum value is " 1970-01-01 00:00:01 ".
Use DATE to store old dates or DATETIME to store old dates over time.
Check MySQL documentation for date format http://dev.mysql.com/doc/refman/5.1/en/datetime.html
Source: https://habr.com/ru/post/1759288/More articles:Fast way to convert float range from -1 to 1 to short? - cIs there a way to apply the shader effect to a specific grid cell - wpfGmail Email Address Extractor - phpHow to rename java class and it uses Mercurial support? - mercurialJQuery event to close a closing tag - jqueryDetecting interaction with select box - javascriptunit tests and the captain are obvious (ASP.NET MVC) - unit-testingjquery - проверьте, не содержит ли родитель элемент с классом - jquerySqlite3 update line syntax - syntaxmaven-jar-plugin addClasspath scoping - maven-2All Articles