摘要:
创建表 -- 创建一个学生表,id为主键,姓名不能为空,地址默认北京,外键使用学院的id create table student( id int primary key auto_increment, name varchar(20) not null, college_id int not nu 阅读全文
摘要:
查询语法 SELECT 查询列表 FROM 表名或视图列表 【WHERE 条件表达式】 【GROUP BY 字段名 【HAVING 条件表达式】】 【ORDER BY 字段 【ASC|DESC】】 【LIMIT m,n】; 模糊查询 SELECT * FROM stu WHERE nameLIKE 阅读全文