平台改进很快,昨天发现的小问题,今天都已经更正了,点赞!
一、温故
创建表、插入记录、查询记录和删除表基本使用
1. 查询所有数据
select * from products;
2. 数据排序
select category from products order by category asc;
3. 按条件查询数据
select * from products where category='toys';
二、知新
数据库查询、更新和删除基本使用
主要学习内容:
1. 查询数据
select * from products limit 3;
2. 更新数据
update products set product_id = product_id - 1000 where product_id > 1600;
3. 删除数据
delete from products where category = 'toys';
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




