当前位置 博文首页 > fenfyue的博客:2020-09-25
(MySQL进入密码打不开???)
? ? ? float(m,d)单精度浮点型,8为精度(4字节),m总个数,d小数位
? ? ? double(m,d)双精度浮点型,16位精度(8个字节),m总个数,d小数位
? ? ? varchar 变长型字符串(65535个字符)? ? ? enum枚举型? ?set 组合型
列级完整性约束条件
?
desc student :查找查看表格?
?
create table 表名?
(s_no int (10)not null primary key,s_name char(20) not null,s_sex char(4) not null,s_class char(40) not nulll);
?
create table? xscj;
use xscj;
create table SC?
?(s_no int(10)? not null primary key,Cno int(4) not null,Grade int (5) not null);
decs SC:
输入内容 :sname char(20) not null comment '姓名'
?
alter table student (修改)
(1)add 增加
(2)modify 修改数据类型
(3)change sage 修改一个字段
cs