{"id":385,"date":"2016-04-02T09:19:40","date_gmt":"2016-04-02T09:19:40","guid":{"rendered":"https:\/\/sqltutorial.org\/?page_id=385"},"modified":"2025-02-08T04:53:43","modified_gmt":"2025-02-08T11:53:43","slug":"sql-delete","status":"publish","type":"page","link":"https:\/\/www.sqltutorial.org\/sql-delete\/","title":{"rendered":"SQL DELETE"},"content":{"rendered":"\n<p><strong>Summary<\/strong>: in this tutorial, you will learn&nbsp;how to use the SQL <code>DELETE<\/code> statement to delete one or more rows from a table.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='introduction-to-sql-delete-statement'>Introduction to SQL DELETE statement <a href=\"#introduction-to-sql-delete-statement\" class=\"anchor\" id=\"introduction-to-sql-delete-statement\" title=\"Anchor for Introduction to SQL DELETE statement\">#<\/a><\/h2>\n\n\n\n<p>In SQL, the <code>DELETE<\/code> statement allows you to delete one or more rows from a table based on a condition. <\/p>\n\n\n\n<p>Here&#8217;s the syntax of the <code>DELETE<\/code> statement:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">DELETE<\/span> <span class=\"hljs-keyword\">FROM<\/span> table_name\n<span class=\"hljs-keyword\">WHERE<\/span> condition;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>In this syntax:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>First, provide the name of the table from which you want to delete rows.<\/li>\n\n\n\n<li>Second, specify a <code>condition<\/code> in the <code><a href=\"https:\/\/www.sqltutorial.org\/sql-where\/\">WHERE<\/a><\/code> clause to identify rows to delete. <\/li>\n<\/ul>\n\n\n\n<p>The <code>WHERE<\/code> clause is optional. If you omit the <code>WHERE<\/code> clause, the <code>DELETE<\/code> statement will delete all rows from the table:<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">DELETE FROM table_name;<\/code><\/span><\/pre>\n\n\n<p>In general, the <code>DELETE<\/code> statement returns the number of row deleted to the client. <\/p>\n\n\n\n<p>Some database systems like PostgreSQL returns the a result set that includes the deleted rows to the client.<\/p>\n\n\n\n<p class=\"note\">If you delete from a table that has a <a href=\"https:\/\/www.sqltutorial.org\/sql-foreign-key\/\">foreign key constraint<\/a> with the <code>ON DELETE CASCADE<\/code> option, the <code>DELETE<\/code> statement will also delete rows from related tables.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='sql-delete-statement-examples'>SQL DELETE statement examples <a href=\"#sql-delete-statement-examples\" class=\"anchor\" id=\"sql-delete-statement-examples\" title=\"Anchor for SQL DELETE statement examples\">#<\/a><\/h2>\n\n\n\n<p>We&#8217;ll use the <code>employees<\/code> and <code>dependents<\/code> tables to demonstrate the <code>DELETE<\/code> statement.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"495\" height=\"270\" src=\"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2016\/03\/employees_dependents_tables.png\" alt=\"employees_dependents_tables\" class=\"wp-image-274\" srcset=\"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2016\/03\/employees_dependents_tables.png 495w, https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2016\/03\/employees_dependents_tables-300x164.png 300w\" sizes=\"auto, (max-width: 495px) 100vw, 495px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id='deleting-one-row-from-a-table'>Deleting one row from a table <a href=\"#deleting-one-row-from-a-table\" class=\"anchor\" id=\"deleting-one-row-from-a-table\" title=\"Anchor for Deleting one row from a table\">#<\/a><\/h3>\n\n\n\n<p>Suppose <code>David<\/code>, who has employee id 105, wants to remove <code>Fred<\/code> from his dependent list. <\/p>\n\n\n\n<p>We know that <code>Fred<\/code> has the dependent id <code>16<\/code>, so we use the following <code>DELETE<\/code> statement to delete <code>Fred<\/code> from the <code>dependents<\/code> table:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">DELETE<\/span> <span class=\"hljs-keyword\">FROM<\/span> dependents\n<span class=\"hljs-keyword\">WHERE<\/span> dependent_id = <span class=\"hljs-number\">16<\/span>;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p><a href=\"https:\/\/www.sqltutorial.org\/playground\/?q=REVMRVRFIEZST00gZGVwZW5kZW50cyBXSEVSRSBkZXBlbmRlbnRfaWQgPSAxNjs%3D\" target=\"_blank\" rel=\"noreferrer noopener\">Try it<\/a><\/p>\n\n\n\n<p>Since the <code>WHERE<\/code> clause contains the <a href=\"https:\/\/www.sqltutorial.org\/sql-primary-key\/\">primary key<\/a> expression that uniquely identifies <code>Fred<\/code>, the <code>DELETE<\/code> statement&nbsp;removes one row from the <code>dependents<\/code> table.<\/p>\n\n\n\n<p>To verify that the row with the dependent id 16 has been deleted, you can query data from the <code>dependents<\/code> table:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">SELECT<\/span>\n  *\n<span class=\"hljs-keyword\">FROM<\/span>\n  dependents\n<span class=\"hljs-keyword\">WHERE<\/span>\n  dependent_id = <span class=\"hljs-number\">16<\/span>;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p><a href=\"https:\/\/www.sqltutorial.org\/playground\/?q=U0VMRUNUICogRlJPTSBkZXBlbmRlbnRzIFdIRVJFIGRlcGVuZGVudF9pZCA9IDE2Ow%3D%3D\" target=\"_blank\" rel=\"noreferrer noopener\">Try it<\/a><\/p>\n\n\n\n<p>The query returns an empty result set, meaning that the row with the <code>dependent_id<\/code> 16 was deleted.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='deleting-multiple-rows-from-a-table'>Deleting multiple rows from a table <a href=\"#deleting-multiple-rows-from-a-table\" class=\"anchor\" id=\"deleting-multiple-rows-from-a-table\" title=\"Anchor for Deleting multiple rows from a table\">#<\/a><\/h3>\n\n\n\n<p>To delete multiple rows from a table, you use the condition in the <code>WHERE<\/code> clause to specify the rows to delete. <\/p>\n\n\n\n<p>For example, the following statement uses the <code><a href=\"https:\/\/www.sqltutorial.org\/sql-in\/\">IN<\/a><\/code> operator in the <code>WHERE<\/code> clause of the <code>DELETE<\/code> statement to delete rows with the dependent id 1, 2, and 3:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">DELETE<\/span> <span class=\"hljs-keyword\">FROM<\/span> dependents\n<span class=\"hljs-keyword\">WHERE<\/span> dependent_id <span class=\"hljs-keyword\">IN<\/span> (<span class=\"hljs-number\">1<\/span>, <span class=\"hljs-number\">2<\/span>, <span class=\"hljs-number\">3<\/span>);<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p><a href=\"https:\/\/www.sqltutorial.org\/playground\/?q=REVMRVRFIEZST00gZGVwZW5kZW50cyBXSEVSRSBkZXBlbmRlbnRfaWQgSU4gKDEsIDIsIDMpOw%3D%3D\" target=\"_blank\" rel=\"noreferrer noopener\">Try it<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='deleting-all-rows-from-a-table'>Deleting all rows from a table <a href=\"#deleting-all-rows-from-a-table\" class=\"anchor\" id=\"deleting-all-rows-from-a-table\" title=\"Anchor for Deleting all rows from a table\">#<\/a><\/h3>\n\n\n\n<p>The following example uses the <code>DELETE<\/code> statement without an <code><a href=\"https:\/\/www.sqltutorial.org\/sql-where\/\">WHERE<\/a><\/code> clause to delete all rows from the <code>dependents<\/code> table:<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">DELETE FROM dependents;<\/code><\/span><\/pre>\n\n\n<p><a href=\"https:\/\/www.sqltutorial.org\/playground\/?q=REVMRVRFIEZST00gZGVwZW5kZW50czs%3D\" target=\"_blank\" rel=\"noreferrer noopener\">Try it<\/a><\/p>\n\n\n\n<p>To delete all rows from a table more efficiently, you use the <code><a href=\"https:\/\/www.sqltutorial.org\/sql-truncate-table\/\">TRUNCATE TABLE<\/a><\/code> statement instead of using the <code>DELETE<\/code> statement without a <code>WHERE<\/code> clause.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='summary'>Summary <a href=\"#summary\" class=\"anchor\" id=\"summary\" title=\"Anchor for Summary\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use the <code>DELETE<\/code> statement to delete one or more rows from a table.<\/li>\n\n\n\n<li>Use the <code>DELETE<\/code> statement without a <code>WHERE<\/code> clause to delete all rows from a table.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id='quiz'>Quiz <a href=\"#quiz\" class=\"anchor\" id=\"quiz\" title=\"Anchor for Quiz\">#<\/a><\/h2>\n\n\n\n<iframe loading=\"lazy\"\n  name=\"quiz\"\n  src=\"\/quiz\/?quiz=delete\"\n  height=\"700\"\n  width=\"600\"\n  class=\"iframe\"\n><\/iframe>\n\n\n\n\n<h2 class=\"wp-block-heading\" id='databases'>Databases <a href=\"#databases\" class=\"anchor\" id=\"databases\" title=\"Anchor for Databases\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.pgtutorial.com\/postgresql-tutorial\/postgresql-delete\/\" target=\"_blank\" rel=\"noreferrer noopener\">PostgreSQL DELETE Statement<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.mysqltutorial.org\/mysql-basics\/mysql-delete\/\" target=\"_blank\" rel=\"noreferrer noopener\">MySQL DELETE Statement<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.mariadbtutorial.com\/mariadb-basics\/mariadb-delete\/\" target=\"_blank\" rel=\"noreferrer noopener\">MariaDB DELETE Statement<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.sqlitetutorial.net\/sqlite-delete\/\" target=\"_blank\" rel=\"noreferrer noopener\">SQLite DELETE Statement<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.db2tutorial.com\/db2-basics\/db2-delete\/\" target=\"_blank\" rel=\"noreferrer noopener\">Db2 DELETE Statement<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-delete\/\" target=\"_blank\" rel=\"noreferrer noopener\">Oracle DELETE Statement<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-basics\/sql-server-delete\/\" target=\"_blank\" rel=\"noreferrer noopener\">SQL Server DELETE Statement<\/a><\/li>\n<\/ul>\n<div class=\"helpful-block-content\" data-title=\"\">\n\t<header>\n\t\t<div class=\"wth-question\">Was this tutorial helpful ?<\/div>\n\t\t<div class=\"wth-thumbs\">\n\t\t\t<button\n\t\t\t\tdata-post=\"385\"\n\t\t\t\tdata-post-url=\"https:\/\/www.sqltutorial.org\/sql-delete\/\"\n\t\t\t\tdata-post-title=\"SQL DELETE\"\n\t\t\t\tdata-response=\"1\"\n\t\t\t\tclass=\"wth-btn-rounded wth-yes-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\tclass=\"feather feather-thumbs-up block w-full h-full\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> Yes <\/span>\n\t\t\t<\/button>\n\n\t\t\t<button\n\t\t\t\tdata-response=\"0\"\n\t\t\t\tdata-post=\"385\"\n\t\t\t\tdata-post-url=\"https:\/\/www.sqltutorial.org\/sql-delete\/\"\n\t\t\t\tdata-post-title=\"SQL DELETE\"\n\t\t\t\tclass=\"wth-btn-rounded wth-no-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> No <\/span>\n\t\t\t<\/button>\n\t\t<\/div>\n\t<\/header>\n\n\t<div class=\"wth-form hidden\">\n\t\t<div class=\"wth-form-wrapper\">\n\t\t\t<div class=\"wth-title\"><\/div>\n\t\t\t\n\t\t\t<textarea class=\"wth-message\"><\/textarea>\n\n\t\t\t<button class=\"btn btn-primary wth-btn-submit\">Send<\/button>\n\t\t\t<button class=\"btn wth-btn-cancel\">Cancel<\/button>\n\t\t\n\t\t<\/div>\n\t<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn\u00a0how to use the SQL DELETE statement to delete one or more rows from a table.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":33,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-385","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SQL DELETE Statement<\/title>\n<meta name=\"description\" content=\"In this tutorial, you will learn\u00a0how to use the SQL DELETE statement to delete one or more rows from a table.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sqltutorial.org\/sql-delete\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQL DELETE Statement\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, you will learn\u00a0how to use the SQL DELETE statement to delete one or more rows from a table.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqltutorial.org\/sql-delete\/\" \/>\n<meta property=\"og:site_name\" content=\"SQL Tutorial\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-08T11:53:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2016\/03\/employees_dependents_tables.png\" \/>\n\t<meta property=\"og:image:width\" content=\"495\" \/>\n\t<meta property=\"og:image:height\" content=\"270\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sqltutorial.org\/sql-delete\/\",\"url\":\"https:\/\/www.sqltutorial.org\/sql-delete\/\",\"name\":\"SQL DELETE Statement\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqltutorial.org\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.sqltutorial.org\/sql-delete\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.sqltutorial.org\/sql-delete\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2016\/03\/employees_dependents_tables.png\",\"datePublished\":\"2016-04-02T09:19:40+00:00\",\"dateModified\":\"2025-02-08T11:53:43+00:00\",\"description\":\"In this tutorial, you will learn\u00a0how to use the SQL DELETE statement to delete one or more rows from a table.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.sqltutorial.org\/sql-delete\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqltutorial.org\/sql-delete\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqltutorial.org\/sql-delete\/#primaryimage\",\"url\":\"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2016\/03\/employees_dependents_tables.png\",\"contentUrl\":\"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2016\/03\/employees_dependents_tables.png\",\"width\":495,\"height\":270,\"caption\":\"SQL UPDATE Statement - employees & dependents tables\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqltutorial.org\/sql-delete\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqltutorial.org\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQL DELETE\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sqltutorial.org\/#website\",\"url\":\"https:\/\/www.sqltutorial.org\/\",\"name\":\"SQL Tutorial\",\"description\":\"An Interactive SQL Tutorial\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sqltutorial.org\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SQL DELETE Statement","description":"In this tutorial, you will learn\u00a0how to use the SQL DELETE statement to delete one or more rows from a table.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sqltutorial.org\/sql-delete\/","og_locale":"en_US","og_type":"article","og_title":"SQL DELETE Statement","og_description":"In this tutorial, you will learn\u00a0how to use the SQL DELETE statement to delete one or more rows from a table.","og_url":"https:\/\/www.sqltutorial.org\/sql-delete\/","og_site_name":"SQL Tutorial","article_modified_time":"2025-02-08T11:53:43+00:00","og_image":[{"width":495,"height":270,"url":"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2016\/03\/employees_dependents_tables.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sqltutorial.org\/sql-delete\/","url":"https:\/\/www.sqltutorial.org\/sql-delete\/","name":"SQL DELETE Statement","isPartOf":{"@id":"https:\/\/www.sqltutorial.org\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sqltutorial.org\/sql-delete\/#primaryimage"},"image":{"@id":"https:\/\/www.sqltutorial.org\/sql-delete\/#primaryimage"},"thumbnailUrl":"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2016\/03\/employees_dependents_tables.png","datePublished":"2016-04-02T09:19:40+00:00","dateModified":"2025-02-08T11:53:43+00:00","description":"In this tutorial, you will learn\u00a0how to use the SQL DELETE statement to delete one or more rows from a table.","breadcrumb":{"@id":"https:\/\/www.sqltutorial.org\/sql-delete\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqltutorial.org\/sql-delete\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqltutorial.org\/sql-delete\/#primaryimage","url":"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2016\/03\/employees_dependents_tables.png","contentUrl":"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2016\/03\/employees_dependents_tables.png","width":495,"height":270,"caption":"SQL UPDATE Statement - employees & dependents tables"},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqltutorial.org\/sql-delete\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqltutorial.org\/"},{"@type":"ListItem","position":2,"name":"SQL DELETE"}]},{"@type":"WebSite","@id":"https:\/\/www.sqltutorial.org\/#website","url":"https:\/\/www.sqltutorial.org\/","name":"SQL Tutorial","description":"An Interactive SQL Tutorial","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqltutorial.org\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.sqltutorial.org\/wp-json\/wp\/v2\/pages\/385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqltutorial.org\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.sqltutorial.org\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqltutorial.org\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqltutorial.org\/wp-json\/wp\/v2\/comments?post=385"}],"version-history":[{"count":0,"href":"https:\/\/www.sqltutorial.org\/wp-json\/wp\/v2\/pages\/385\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqltutorial.org\/wp-json\/wp\/v2\/media?parent=385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}