我遇到了一个简单的问题,但我不知道为什么.第一个SQL可以创建表,第二个不能.为什么?
String temString = "create table if not exists test(number int not null, name varchar(20) not null, primary key(number))engine=myisam default charset=utf8";
String createTableString = "create table if not exists ju_users (ju_userID int not null, TaobaoID int not null, ju_userName varchar(20) not null, ju_userPWD varchar(10) not null, primary key (ju_userID)) engine=myisam defalut charset=utf8";
Run Code Online (Sandbox Code Playgroud)
消息是:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'defalut …Run Code Online (Sandbox Code Playgroud) 我1418572798.498在字符串中有一个这样格式化的python日期.在Java中,日期的格式如下1418572798498.
如何将此字符串转换为Java日期?是否有用于转换的第三方库?