Home > Database > Mysql Tutorial > mysql-java中的sql语句为何会报错,而到了workbench就可以执行

mysql-java中的sql语句为何会报错,而到了workbench就可以执行

WBOY
Release: 2016-06-06 09:41:58
Original
1840 people have browsed it

mysqljavaworkbenchtimestamp

rt
基本上是timestamp的格式,比如
insert into table values ('2015-03-17 00:00:00');
这句话在java通过jdbc执行就会报错,而直接在workbench下面操作就没有问题
为什么会这样?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template