MySQL创建表格
第二,
查看是否支持onlinedb中文字符集;
如果不支持,首先创建
创建
mysql>create database onlinedb character set gb2312 collate gb2312_chinese_ci;
Query OK, 1 row affected (0.00 sec)
检查
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| onlinedb | *********注册成功
| performance_schema |
| students |
| sys |
+--------------------+
6 rows in set (0.00 sec)代表创建成功
use onlinedb;
Database changed
create table users(
-> uID int(11) primary key auto_increment comment '用户ID',
-> uName varchar(30) not null,
-> uPwd varchar(30) not null,
-> uSex ENUM('男','女') default'男'
-> );
一辈子最少拼到无能为力过一次。