SQL Delete命令用于删除SQL数据库中的记录,下面就为您详细介绍SQL Delete命令的用法,希望可以让您对SQL Delete命令有更深的认识。
成都创新互联公司主要从事成都网站设计、做网站、网页设计、企业做网站、公司建网站等业务。立足成都服务上高,十载网站建设经验,价格优惠、服务专业,欢迎来电咨询建站服务:18982081108
DELETE 声明
The DELETE statement is used to delete rows in a table.
DELETE 声明常用来删除表中的数据。
语法
DELETE FROM table_nameWHERE column_name = some_value
--------------------------------------------------------------------------------
Person:
LastName FirstName Address City
Nilsen Fred Kirkegt 56 Stavanger
Rasmussen Nina Stien 12 Stavanger
--------------------------------------------------------------------------------
Delete a Row
删除一条记录
"Nina Rasmussen" is going to be deleted:
"Nina Rasmussen" 的所有个人信息将被删除:
DELETE FROM Person WHERE LastName = 'Rasmussen'
结果
LastName FirstName Address City
Nilsen Fred Kirkegt 56 Stavanger
--------------------------------------------------------------------------------
Delete All Rows
删除所有记录
It is possible to delete all rows in a table without deleting the table. This means that the table structure, attributes, and indexes will be intact:
可以不删除数据表且删除里面的所有记录行。这就意味着数据表构架,属性以及索引都会完整保留:
DELETE FROM table_name或DELETE * FROM table_name
本文名称:使用SQLDelete命令删除记录
URL网址:http://www.gawzjz.com/qtweb2/news48/13698.html
网站建设、网络推广公司-创新互联,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有等
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联