​命令列界面运行成功,刷新不出表格

来源:2-2 JDBC实战---打通数据库

慕粉_蓝

2018-04-29 23:33

mysql> create table imooc_goddess(

id int primary key auto_imcrement,

user_name varchar(30) not null,

sex int,

age int,

birthday date,

emailvarchar(30),

mobile varchar(11),

create_user varchar(30),

update_date date,

isdel int

)engine=innodb default charset=utf8 auto_increment=1;

alter database imooc default character set'utf8';

SET character_set_client='utf8';

SET character_set_connection='utf8';

SET character_set_results='

utf8';

1064 - 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 'auto_imcrement,

user_name varchar(30) not null,

sex int,

age int,

birthd' at line 2

Query OK, 1 row affected


Query OK, 0 rows affected


Query OK, 0 rows affected


Query OK, 0 rows affected


mysql> 


写回答 关注

1回答

  • 慕粉2137351520
    2018-05-01 14:46:53

    在你创建的imooc数据库运行命令行操作 回车运行成功后刷新就出来了

    慕粉2137... 回复慕粉_蓝

    你再琢磨琢磨

    2018-05-27 19:51:14

    共 2 条回复 >

JDBC之 “ 对岸的女孩看过来”

一起领略JDBC的奥秘,为进一步学习集成框架打下良好的基础

99327 学习 · 856 问题

查看课程

相似问题