【MySql】delete用法


delete 语句用于删除表中的数据, 基本用法为:

delete from 表名称 where 删除条件;

以下是在表 students 中的实例:

删除 id 为 3 的行: delete from students where id=3;

删除所有年龄小于 21 岁的数据: delete from students where age<20;

删除表中的所有数据: delete from students;


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM