摘要:
1指定查询语句 select * from student 查询全部的学生 select `studentNo` from student 查询指定字段 select `studentOn` as 学号 from student AS a 别名AS 给结果起一个别名,也可以给表起别名 select 阅读全文
摘要:
外键了解 方式一: 方式二: 物理外键,数据库级别的外键,不建议使用 插入语句 insert 修改数据 update 修改谁 set 原来的值=新值 where 条件 删除 delete from `student` 避免这样写,会全部删除 delete from `student` where ` 阅读全文
摘要:
创建数据库: creat database if not exists westos if not exists :是否存在表westos 查看所以数据库: show database 删除数据库: drop database [if exists] westos 使用数据库: use westos 阅读全文