Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 mysql 开发基本的 ddl 语句,但我创建了数据类型为时间戳的表,并收到错误作为时间戳的无效语句。我的代码是:
ps.setTimestamp(4, m_datetime);
提前致谢。
确保它m_datetime具有正确的timestamp格式并且它的数据类型是java.sql.Timestamp
m_datetime
timestamp
java.sql.Timestamp