摘要:
一、左连接 left join 1、查询出左边所有的数据 2、再一的基础上查询出符合要求的右边的表数据 比如:select * from shop left join goods on shop.id= goods.shop_id; 右连接 比如:select * from shop right j 阅读全文
摘要:
查询大于等于,小于等于,不等于: 比如 select * from salaries where salary>=76885 limit 5; 模糊查询:select * from 表名 where 字段 like “xxx%” 比如:select * from employees where fi 阅读全文
摘要:
一、修改数据:根据某一个条件来修改相关的数据 1.单条数据修改 update tableName set 字段=newContent where 表达式; 比如:修改userone里年龄为20的名字都改成product update userone set name="product" where 阅读全文