今天不行“无所事事”了,便尝试了Mysql的运用与整理了一些命令,具体如下:
1、下载并安装Mysql,参考地址:http://xiazai.zol.com.cn/detail/9/89874.shtml
2、运用:打开,输入密码“123456”,回车
创建数据库student:cteate database student;
使用数据库student:use student;
创建表格ghoul:cteate table ghoul(
>number char(2) not null primary key ,
> name char(10) not null,
> sex int(4) not null default '0')
插入数据: insert into ghoul values(“01”,“金木研”,“男”),(“02”,“雾岛堇香”,“女”);……
显示表格:show ghoul;
显示表数据:select * from ghoul;
关闭Mysql:quit
3、MyClass相关命令总结:http://www.cnblogs.com/zhangzhu/archive/2013/07/04/3172486.html