摘要:
一、查询语法 select 字段列表 from 表名列表 where 条件列表 group by 分组列表 having 分组后条件 order by 排序字段 limit 分页限定 (提供一个表来操作操作) -- 删除 stu 表 drop table if exists stu; -- 创建st 阅读全文
摘要:
一、添加数据 1.给指定列添加数据 insert into 表名(列名1,列名2,...) values(值1,值2...); 执行给指定列添加数据前: -- 给指定列添加数据 insert into 表名(列名1,列名2,...) values(值1,值2...); insert into stu 阅读全文
摘要:
1.数值类型 age int score double(总长度,小数点后保留的位数) 若要0-100 保留2位 score double(5,2) 2.日期类型 birthday date 3.字符串类型 (超过最大长度报错) (1)定长字符串 char(最大长度) ——存储性能高 name cha 阅读全文