小编dav*_*hao的帖子

无法使用Java在MySQL中创建表

我遇到了一个简单的问题,但我不知道为什么.第一个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)

java mysql

0
推荐指数
1
解决办法
110
查看次数

如何将python时间转换为java日期

1418572798.498在字符串中有一个这样格式化的python日期.在Java中,日期的格式如下1418572798498.

如何将此字符串转换为Java日期?是否有用于转换的第三方库?

python java time

0
推荐指数
1
解决办法
1940
查看次数

标签 统计

java ×2

mysql ×1

python ×1

time ×1