SQL SERVER数据库中删除了语句delete的用法

小微 科技SQL SERVER数据库中删除了语句delete的用法已关闭评论106字数 696阅读模式
摘要--删除了了数据的语法:--delete from 表名 where 条件select * from studentInfo--删除了了姓名为Jim的学生信息delete from...

--删除了数据的语法:--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

 
小微
  • 版权声明: 本文部分文字与图片资源来自于网络,转载此文是出于传递更多信息之目的,若有来源标注错误或侵犯了您的合法权益,请立即通知我们(管理员邮箱:81118366@qq.com),情况属实,我们会第一时间予以删除,并同时向您表示歉意,谢谢!
  • 转载请务必保留本文链接:https://93wg.com/15100.html