1、准备数据 以下操作将在该表中进行 create table student ( id int unsigned primary key auto_increment, name char(12) not null, gender enum("male","famale") default "male", age tinyint unsigned not null, hoc_group char
1、准备工作 在MySQL数据库中创建两张表balance(余额表)和customer(客户表)并插入数据。 create table customer( id int(10) primary key, name char(20) not null, role char(20) not null, phone char(20) not null, s 1、准备工作 在MySQL数据库中创建两张表b
CHAR char (M) M字符,长度是M*字符编码长度,M最大255。 验证如下: mysql create table t1(name char(256)) default charset=utf8;ERROR 1074 (42000): Column length too big for column 'name' (max = 255); use BLOB or TEXT inste C