--删除了数据的语法:--delete from 表名 where 前提select * from studentInfo--删除了姓名为Jim的学生信息delete from studentInfo where stuName='Jim'select * from studentInfo--依据Id删除了:删除了学号为10006的学生信息delete from studentInfo where stuID = 10006select * from studentInfo--删除了春秋大于等于等于17并且小于等于20岁的学生信息(删除了多条)delete from studentInfo where stuAge >=17 and stuAge<=20select * from studentInfo--删除了是不给任何前提或者where 1=1 代表删除了所有的数据delete from scoreInfo delete from scoreInfo where 1=1 select * from studentInfoselect * from scoreInfo --已知成就表中的stuId引用学生表中的stuId ,这类情况下咱们执行删除了操作会呈现什么结果呢delete from studentInfo where stuID = 10000 select * from scoreInfo--以空为前提作为删除了delete from scoreInfo where createTime is nullselect * from scoreInfo
以上就是微观生活(93wg.com)关于“SQL SERVER数据库中删除了语句delete的用法”的详细内容,希望对大家有所帮助!文章源自微观生活(93wg.com)微观生活-https://93wg.com/15100.html 文章源自微观生活(93wg.com)微观生活-https://93wg.com/15100.html
评论