Monday, 28 January 2019

prepared statment date exception in java

https://stackoverflow.com/questions/30280494/why-do-i-get-a-com-mysql-jdbc-mysqldatatruncation-data-truncation-incorrect-d


PreparedStatement prep = con
         .prepareStatement("REPLACE INTO bus(mac, route, latitude, longitude, created_at)"
                 + "VALUES( ?, ?, ? , ?, now())");

No comments:

Post a Comment