{"id":175680,"date":"2026-02-19T20:09:41","date_gmt":"2026-02-19T19:09:41","guid":{"rendered":"https:\/\/liora.io\/en\/?p=175680"},"modified":"2026-02-19T20:09:41","modified_gmt":"2026-02-19T19:09:41","slug":"sql-update-update-data-with-this-command","status":"publish","type":"post","link":"https:\/\/liora.io\/en\/sql-update-update-data-with-this-command","title":{"rendered":"SQL UPDATE: Update data with this command"},"content":{"rendered":"<p><strong>Because databases are constantly evolving, it&#8217;s essential to be familiar with the UPDATE SQL query. This allows you to modify one or more rows in your table. So how do you use it? We explain it all in this article.<\/strong><\/p>\t\t\n\t\t\t<h2>What is SQL UPDATE?<\/h2>\t\t\n\t\t<p>The <strong>SQL UPDATE<\/strong> command is used to update data within a table. It&#8217;s essential if you want to maintain a database with up-to-date, reliable information.<\/p><p>As data quality is one of the biggest challenges facing data scientists, UPDATE is one of the <a href=\"https:\/\/liora.io\/en\/sql-queries-the-5-most-important-commands-to-know\">most common SQL queries.<\/a><\/p>\t\t\n\t\t\t<h2>How do I use the UPDATE SQL command?<\/h2><figure class=\"wp-block-image size-large\" style=\"margin-top:var(--wp--preset--spacing--columns);margin-bottom:var(--wp--preset--spacing--columns)\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"572\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2026\/02\/woman-at-desk-working-on-computer-1024x572.jpg\" alt=\"Woman working on a computer in a modern office, surrounded by documents and office equipment.\" class=\"wp-image-207698\" srcset=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2026\/02\/woman-at-desk-working-on-computer-1024x572.jpg 1024w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2026\/02\/woman-at-desk-working-on-computer-300x167.jpg 300w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2026\/02\/woman-at-desk-working-on-computer-768x429.jpg 768w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2026\/02\/woman-at-desk-working-on-computer-1536x857.jpg 1536w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2026\/02\/woman-at-desk-working-on-computer-2048x1143.jpg 2048w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2026\/02\/woman-at-desk-working-on-computer-440x246.jpg 440w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2026\/02\/woman-at-desk-working-on-computer-785x438.jpg 785w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2026\/02\/woman-at-desk-working-on-computer-210x117.jpg 210w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2026\/02\/woman-at-desk-working-on-computer-115x64.jpg 115w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\t\t\n\t\t<p>The<strong> syntax of the UPDATE SQL<\/strong> query is as follows:<\/p><p>UPDATE table name<br>SET column name = &#8216;new value<br><a href=\"https:\/\/liora.io\/en\/sql-where-heres-the-syntax\">WHERE condition<\/a><\/p><p>To better understand it, let&#8217;s take a look at its main attributes:<\/p><p>The SET clause: this defines what you&#8217;re going to replace existing data with. Here, only the columns to be modified need be specified. All other columns retain their current values.<br>The WHERE clause: this specifies where the changes are to be made.<\/p><p>Beyond this simplified syntax, it&#8217;s also possible to use the UPDATE function with other SQL queries, such as SELECT, <a href=\"https:\/\/liora.io\/en\/sql-insert-into-insert-data-with-this-sql-query\">INSERT INTO,<\/a> GETDATE, INNER, JOIN and so on. This allows you to enrich your database and perform more complex manipulations.<\/p>\t\t\n\t\t\t\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex is-content-justification-center\"><div class=\"wp-block-button \"><a class=\"wp-block-button__link wp-element-button \" href=\"\/en\/courses\/data-ai\/data-scientist\">Learn how to use UPDATE SQL<\/a><\/div><\/div>\n\n\t\t\t<h2>5 examples of UPDATE queries<\/h2>\t\t\n\t\t\t<h3>Modify a line<\/h3>\t\t\n\t\t<p>In this example, we use the Customer table below.<\/p>\t\t\n\t\t\t\n.tg {border-collapse:collapse;border-spacing:0;}\n.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg .tg-c3ow{border-color:inherit;text-align:center;vertical-align:top}\n.tg .tg-a0vq{background-color:#6665cd;border-color:inherit;color:#efefef;text-align:center;vertical-align:top}\n\n<table style=\"undefined;width: 500px\">\n<colgroup>\n<col style=\"width: 25px\">\n<col style=\"width: 75px\">\n<col style=\"width: 75px\">\n<col style=\"width: 125px\">\n<col style=\"width: 200px\">\n<\/colgroup>\n<thead>\n  <tr>\n    <th>ID<\/th>\n    <th>First name<\/th>\n    <th>Last name<\/th>\n    <th>City<\/th>\n    <th>E-mail<\/th>\n  <\/tr>\n<\/thead>\n<tbody>\n  <tr>\n    <td>1<\/td>\n    <td>Justin<\/td>\n    <td>Martin<\/td>\n    <td>Paris<\/td>\n    <td>justinemartin@gmail.com<\/td>\n  <\/tr>\n  <tr>\n    <td>2<\/td>\n    <td>Thomas<\/td>\n    <td>Durant<\/td>\n    <td>Bordeaux<\/td>\n    <td>tomtom@sfr.fr<\/td>\n  <\/tr>\n  <tr>\n    <td>3<\/td>\n    <td>Marie<\/td>\n    <td>Leroy<\/td>\n    <td>Angers<\/td>\n    <td>marieleroy@laposte.net<\/td>\n  <\/tr>\n  <tr>\n    <td>4<\/td>\n    <td>Vanessa<\/td>\n    <td>Savary<\/td>\n    <td>Marseille<\/td>\n    <td>vanessa13@gmail.com<\/td>\n  <\/tr>\n<\/tbody>\n<\/table>\t\t\n\t\t<p>Here, you want to update Justine Martin&#8217;s email address. Here&#8217;s her new address: justinemartin@sfr.fr. To do this, simply enter the following query:<\/p><p><br>UPDATE Customer<\/p><p><br>SET Email = &#8216;justinemartin@sfr.fr&#8217;<\/p><p><br>WHERE id = 1<\/p><p>And here&#8217;s the result:<\/p>\t\t\n\t\t\t\n.tg {border-collapse:collapse;border-spacing:0;}\n.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg .tg-c3ow{border-color:inherit;text-align:center;vertical-align:top}\n.tg .tg-a0vq{background-color:#6665cd;border-color:inherit;color:#efefef;text-align:center;vertical-align:top}\n\n<table style=\"undefined;width: 500px\">\n<colgroup>\n<col style=\"width: 25px\">\n<col style=\"width: 75px\">\n<col style=\"width: 75px\">\n<col style=\"width: 125px\">\n<col style=\"width: 200px\">\n<\/colgroup>\n<thead>\n  <tr>\n    <th>ID<\/th>\n    <th>First name<\/th>\n    <th>Last name<\/th>\n    <th>City<\/th>\n    <th>E-mail<\/th>\n  <\/tr>\n<\/thead>\n<tbody>\n  <tr>\n    <td>1<\/td>\n    <td>Justin<\/td>\n    <td>Martin<\/td>\n    <td>Paris<\/td>\n    <td>justinemartin@sfr.fr<\/td>\n  <\/tr>\n  <tr>\n    <td>2<\/td>\n    <td>Thomas<\/td>\n    <td>Durant<\/td>\n    <td>Bordeaux<\/td>\n    <td>tomtom@sfr.fr<\/td>\n  <\/tr>\n  <tr>\n    <td>3<\/td>\n    <td>Marie<\/td>\n    <td>Leroy<\/td>\n    <td>Angers<\/td>\n    <td>marieleroy@laposte.net<\/td>\n  <\/tr>\n  <tr>\n    <td>4<\/td>\n    <td>Vanessa<\/td>\n    <td>Savary<\/td>\n    <td>Marseille<\/td>\n    <td>vanessa13@gmail.com<\/td>\n  <\/tr>\n<\/tbody>\n<\/table>\t\t\n\t\t\t<h3>Modify multiple data<\/h3>\t\t\n\t\t<p>If you wish to modify several pieces of information on the same line, simply separate the new values with a comma.<\/p><p>In our example, you&#8217;d like to change Not only Justine Martin&#8217;s email address, but also her city. She now lives in Nantes.<\/p><p><strong>Here&#8217;s the query:<\/strong><\/p><p>UPDATE Customer<\/p><p>SET<\/p><p>City = &#8216;Nantes&#8217;,<\/p><p>Email = &#8216;justinemartin@sfr.fr&#8217;<\/p><p>WHERE id = 1<\/p><p>And the new table:<\/p>\t\t\n\t\t\t\n.tg {border-collapse:collapse;border-spacing:0;}\n.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg .tg-c3ow{border-color:inherit;text-align:center;vertical-align:top}\n.tg .tg-a0vq{background-color:#6665cd;border-color:inherit;color:#efefef;text-align:center;vertical-align:top}\n\n<table style=\"undefined;width: 500px\">\n<colgroup>\n<col style=\"width: 25px\">\n<col style=\"width: 75px\">\n<col style=\"width: 75px\">\n<col style=\"width: 125px\">\n<col style=\"width: 200px\">\n<\/colgroup>\n<thead>\n  <tr>\n    <th>ID<\/th>\n    <th>First name<\/th>\n    <th>Last name<\/th>\n    <th>City<\/th>\n    <th>E-mail<\/th>\n  <\/tr>\n<\/thead>\n<tbody>\n  <tr>\n    <td>1<\/td>\n    <td>Justin<\/td>\n    <td>Martin<\/td>\n    <td>Nantes<\/td>\n    <td>justinemartin@sfr.fr<\/td>\n  <\/tr>\n  <tr>\n    <td>2<\/td>\n    <td>Thomas<\/td>\n    <td>Durant<\/td>\n    <td>Bordeaux<\/td>\n    <td>tomtom@sfr.fr<\/td>\n  <\/tr>\n  <tr>\n    <td>3<\/td>\n    <td>Marie<\/td>\n    <td>Leroy<\/td>\n    <td>Angers<\/td>\n    <td>marieleroy@laposte.net<\/td>\n  <\/tr>\n  <tr>\n    <td>4<\/td>\n    <td>Vanessa<\/td>\n    <td>Savary<\/td>\n    <td>Marseille<\/td>\n    <td>vanessa13@gmail.com<\/td>\n  <\/tr>\n<\/tbody>\n<\/table>\t\t\n\t\t\t\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex is-content-justification-center\"><div class=\"wp-block-button \"><a class=\"wp-block-button__link wp-element-button \" href=\"\/en\/courses\/data-ai\/\">Learn about SQL language<\/a><\/div><\/div>\n\n\t\t\t<h3>Modify all lines<\/h3>\t\t\n\t\t<p>If you want to modify all the rows in the table, simply omit the WHERE query. For example, if all customers are moving to Lyon, here&#8217;s the query to save:<\/p><p>UPDATE Customer<\/p><p>SET<\/p><p>City = &#8216;Lyon<\/p><p>And the new table:<\/p>\t\t\n\t\t\t\n.tg {border-collapse:collapse;border-spacing:0;}\n.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg .tg-c3ow{border-color:inherit;text-align:center;vertical-align:top}\n.tg .tg-a0vq{background-color:#6665cd;border-color:inherit;color:#efefef;text-align:center;vertical-align:top}\n\n<table style=\"undefined;width: 500px\">\n<colgroup>\n<col style=\"width: 25px\">\n<col style=\"width: 75px\">\n<col style=\"width: 75px\">\n<col style=\"width: 125px\">\n<col style=\"width: 200px\">\n<\/colgroup>\n<thead>\n  <tr>\n    <th>ID<\/th>\n    <th>First name<\/th>\n    <th>Last name<\/th>\n    <th>City<\/th>\n    <th>E-mail<\/th>\n  <\/tr>\n<\/thead>\n<tbody>\n  <tr>\n    <td>1<\/td>\n    <td>Justin<\/td>\n    <td>Martin<\/td>\n    <td>Lyon<\/td>\n    <td>justinemartin@sfr.fr<\/td>\n  <\/tr>\n  <tr>\n    <td>2<\/td>\n    <td>Thomas<\/td>\n    <td>Durant<\/td>\n    <td>Lyon<\/td>\n    <td>tomtom@sfr.fr<\/td>\n  <\/tr>\n  <tr>\n    <td>3<\/td>\n    <td>Marie<\/td>\n    <td>Leroy<\/td>\n    <td>Lyon<\/td>\n    <td>marieleroy@laposte.net<\/td>\n  <\/tr>\n  <tr>\n    <td>4<\/td>\n    <td>Vanessa<\/td>\n    <td>Savary<\/td>\n    <td>Lyon<\/td>\n    <td>vanessa13@gmail.com<\/td>\n  <\/tr>\n<\/tbody>\n<\/table>\t\t\n\t\t\t<h3>Modify data from another table<\/h3>\t\t\n\t\t<p>For this example, we use two tables.<\/p><p>The first, &#8220;Products&#8221;, lists the products sold by a company and the salesperson who made the sale:<\/p>\t\t\n\t\t\t\n.tg {border-collapse:collapse;border-spacing:0;}\n.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg .tg-c3ow{border-color:inherit;text-align:center;vertical-align:top}\n.tg .tg-a0vq{background-color:#6665cd;border-color:inherit;color:#efefef;text-align:center;vertical-align:top}\n\n<table style=\"undefined;width: 500px\">\n<colgroup>\n<col style=\"width: 100px\">\n<col style=\"width: 100px\">\n<col style=\"width: 150px\">\n<col style=\"width: 150px\">\n<\/colgroup>\n<thead>\n  <tr>\n    <th>Product<\/th>\n    <th>Price<\/th>\n    <th>Commercial ID<\/th>\n    <th>Salesperson name<\/th>\n  <\/tr>\n<\/thead>\n<tbody>\n  <tr>\n    <td>Battery<\/td>\n    <td>100<\/td>\n    <td>5<\/td>\n    <td>NULL<\/td>\n  <\/tr>\n  <tr>\n    <td>Telephone<\/td>\n    <td>300<\/td>\n    <td>1<\/td>\n    <td>NULL<\/td>\n  <\/tr>\n  <tr>\n    <td>Computer<\/td>\n    <td>800<\/td>\n    <td>3<\/td>\n    <td>NULL<\/td>\n  <\/tr>\n<\/tbody>\n<\/table>\t\t\n\t\t<p>The second &#8220;Employee&#8221; lists a company&#8217;s employees.<\/p>\t\t\n\t\t\t\n.tg {border-collapse:collapse;border-spacing:0;}\n.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg .tg-baqh{text-align:center;vertical-align:top}\n.tg .tg-c3ow{border-color:inherit;text-align:center;vertical-align:top}\n.tg .tg-a0vq{background-color:#6665cd;border-color:inherit;color:#efefef;text-align:center;vertical-align:top}\n\n<table style=\"undefined;width: 325px\">\n<colgroup>\n<col style=\"width: 25px\">\n<col style=\"width: 150px\">\n<col style=\"width: 150px\">\n<\/colgroup>\n<thead>\n  <tr>\n    <th>ID<\/th>\n    <th>Price<\/th>\n    <th>Commercial ID<\/th>\n  <\/tr>\n<\/thead>\n<tbody>\n  <tr>\n    <td>1<\/td>\n    <td>Justin<\/td>\n    <td>Martin<\/td>\n  <\/tr>\n  <tr>\n    <td>2<\/td>\n    <td>Thomas<\/td>\n    <td>Durant<\/td>\n  <\/tr>\n  <tr>\n    <td>3<\/td>\n    <td>Marie<\/td>\n    <td>Leroy<\/td>\n  <\/tr>\n  <tr>\n    <td>4<\/td>\n    <td>Vanessa<\/td>\n    <td>Savary<\/td>\n  <\/tr>\n  <tr>\n    <td>5<\/td>\n    <td>Jean<\/td>\n    <td>Dupont<\/td>\n  <\/tr>\n<\/tbody>\n<\/table>\t\t\n\t\t<p>The aim is to identify the name of the sales rep who made the sale, based on the sales rep&#8217;s ID. This name will then be integrated into the product table.<\/p><p><br>To achieve this, here&#8217;s the query to record:<\/p><p><br>UPDATE Product<\/p><p><br>SET Salesperson name = (SELECT &#8220;name&#8221; from &#8220;Employee&#8221; WHERE salesperson ID = ID)<\/p><p>And here is the result:<\/p>\t\t\n\t\t\t\n.tg {border-collapse:collapse;border-spacing:0;}\n.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg .tg-03gf{background-color:#6665cd;color:#efefef;text-align:center;vertical-align:top}\n.tg .tg-baqh{text-align:center;vertical-align:top}\n.tg .tg-c3ow{border-color:inherit;text-align:center;vertical-align:top}\n.tg .tg-a0vq{background-color:#6665cd;border-color:inherit;color:#efefef;text-align:center;vertical-align:top}\n\n<table style=\"undefined;width: 575px\">\n<colgroup>\n<col style=\"width: 25px\">\n<col style=\"width: 125px\">\n<col style=\"width: 125px\">\n<col style=\"width: 150px\">\n<col style=\"width: 150px\">\n<\/colgroup>\n<thead>\n  <tr>\n    <th>ID<\/th>\n    <th>Product<\/th>\n    <th>Price<\/th>\n    <th>Commercial ID<\/th>\n    <th>Salesperson name<\/th>\n  <\/tr>\n<\/thead>\n<tbody>\n  <tr>\n    <td>1<\/td>\n    <td>Battery<\/td>\n    <td>100<\/td>\n    <td>5<\/td>\n    <td>Dupont<\/td>\n  <\/tr>\n  <tr>\n    <td>2<\/td>\n    <td>Telephone<\/td>\n    <td>300<\/td>\n    <td>1<\/td>\n    <td>Martin<\/td>\n  <\/tr>\n  <tr>\n    <td>3<\/td>\n    <td>Computer<\/td>\n    <td>800<\/td>\n    <td>3<\/td>\n    <td>Leroy<\/td>\n  <\/tr>\n<\/tbody>\n<\/table>\t\t\n\t\t\t<h3>Update time with SQL UPDATE<\/h3>\t\t\n\t\t<p>You can also use the SQL query UPDATE with the GETDATE command to update the time and date.<\/p><p>For example, with this &#8220;Product&#8221; table, you&#8217;d like to update the purchase date of the products below to today&#8217;s date (04\/25\/2023).<\/p>\t\t\n\t\t\t\n.tg {border-collapse:collapse;border-spacing:0;}\n.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg .tg-03gf{background-color:#6665cd;color:#efefef;text-align:center;vertical-align:top}\n.tg .tg-baqh{text-align:center;vertical-align:top}\n.tg .tg-c3ow{border-color:inherit;text-align:center;vertical-align:top}\n.tg .tg-a0vq{background-color:#6665cd;border-color:inherit;color:#efefef;text-align:center;vertical-align:top}\n\n<table style=\"undefined;width: 425px\">\n<colgroup>\n<col style=\"width: 25px\">\n<col style=\"width: 125px\">\n<col style=\"width: 125px\">\n<col style=\"width: 150px\">\n<\/colgroup>\n<thead>\n  <tr>\n    <th>ID<\/th>\n    <th>Product<\/th>\n    <th>Price<\/th>\n    <th>Purchase date<\/th>\n  <\/tr>\n<\/thead>\n<tbody>\n  <tr>\n    <td>1<\/td>\n    <td>Battery<\/td>\n    <td>100<\/td>\n    <td>01\/03\/2023<\/td>\n  <\/tr>\n  <tr>\n    <td>2<\/td>\n    <td>Telephone<\/td>\n    <td>300<\/td>\n    <td>06\/03\/2022<\/td>\n  <\/tr>\n  <tr>\n    <td>3<\/td>\n    <td>Computer<\/td>\n    <td>800<\/td>\n    <td>15\/04\/2023<\/td>\n  <\/tr>\n<\/tbody>\n<\/table>\t\t\n\t\t<p>To do this, enter the following query:<\/p><p>UPDATE Product<\/p><p>SET purchase date = GETDATE()<\/p><p>The table is as follows:<\/p>\t\t\n\t\t\t\n  .tg  {border-collapse:collapse;border-spacing:0;}\n  .tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n    overflow:hidden;padding:10px 5px;word-break:normal;}\n  .tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n    font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}\n  .tg .tg-03gf{background-color:#6665cd;color:#efefef;text-align:center;vertical-align:top}\n  .tg .tg-baqh{text-align:center;vertical-align:top}\n  .tg .tg-c3ow{border-color:inherit;text-align:center;vertical-align:top}\n  .tg .tg-a0vq{background-color:#6665cd;border-color:inherit;color:#efefef;text-align:center;vertical-align:top}\n\n<table style=\"undefined;width: 425px\">\n  <colgroup>\n    <col style=\"width: 25px\">\n    <col style=\"width: 125px\">\n    <col style=\"width: 125px\">\n    <col style=\"width: 150px\">\n  <\/colgroup>\n  <thead>\n    <tr>\n      <th>ID<\/th>\n      <th>Product<\/th>\n      <th>Price<\/th>\n      <th>Purchase Date<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr>\n      <td>1<\/td>\n      <td>Battery<\/td>\n      <td>$100<\/td>\n      <td>25\/04\/2023<\/td>\n    <\/tr>\n    <tr>\n      <td>2<\/td>\n      <td>Phone<\/td>\n      <td>$300<\/td>\n      <td>25\/04\/2023<\/td>\n    <\/tr>\n    <tr>\n      <td>3<\/td>\n      <td>Computer<\/td>\n      <td>$800<\/td>\n      <td>25\/04\/2023<\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n\t\t<p>As you can see, the SQL UPDATE query can be used in a multitude of ways. A single blog post may not be enough to cover the wide range of possible uses. If you&#8217;d like to find out more, don&#8217;t hesitate to join one of our training courses at Liora.<\/p><p>&nbsp;<\/p><p>?Related articles:<\/p><table dir=\"ltr\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\" data-sheets-root=\"1\"><colgroup><col width=\"656\"><\/colgroup><tbody><tr><td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;SQL DELETE: How do I use this query?&quot;}\" data-sheets-hyperlink=\"https:\/\/liora.io\/en\/sql-delete-how-do-i-use-this-query\"><a href=\"https:\/\/liora.io\/en\/sql-delete-how-do-i-use-this-query\" target=\"_blank\" rel=\"noopener\">SQL DELETE: How do I use this query?<\/a><\/td><\/tr><tr><td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;SQL Developer: What is it? What's it for?&quot;}\" data-sheets-hyperlink=\"https:\/\/liora.io\/en\/sql-developer-what-is-it-whats-it-for\"><a href=\"https:\/\/liora.io\/en\/sql-developer-what-is-it-whats-it-for\" target=\"_blank\" rel=\"noopener\">SQL Developer: What is it? What&#8217;s it for?<\/a><\/td><\/tr><tr><td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;SQL Tutorial: Top 5 Most Useful Methods&quot;}\" data-sheets-hyperlink=\"https:\/\/liora.io\/en\/sql-tutorial-top-5-most-useful-methods\"><a href=\"https:\/\/liora.io\/en\/sql-tutorial-top-5-most-useful-methods\" target=\"_blank\" rel=\"noopener\">SQL Tutorial: Top 5 Most Useful Methods<\/a><\/td><\/tr><tr><td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;SQL joins: everything you need to know about table associations&quot;}\" data-sheets-hyperlink=\"https:\/\/liora.io\/en\/sql-joins-everything-you-need-to-know-about\"><a href=\"https:\/\/liora.io\/en\/sql-joins-everything-you-need-to-know-about\" target=\"_blank\" rel=\"noopener\">SQL joins: everything you need to know about table associations<\/a><\/td><\/tr><tr><td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;SQL vs NoSQL: differences, uses, advantages and disadvantages&quot;}\" data-sheets-hyperlink=\"https:\/\/liora.io\/en\/sql-vs-nosql\"><a href=\"https:\/\/liora.io\/en\/sql-vs-nosql\" target=\"_blank\" rel=\"noopener\">SQL vs NoSQL: differences, uses, advantages and disadvantages<\/a><\/td><\/tr><tr><td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;NoSQL: All about non-relational databases&quot;}\" data-sheets-hyperlink=\"https:\/\/liora.io\/en\/all-about-non-relational-databases\"><a href=\"https:\/\/liora.io\/en\/all-about-non-relational-databases\" target=\"_blank\" rel=\"noopener\">NoSQL: All about non-relational databases<\/a><\/td><\/tr><\/tbody><\/table>\t\t\n\t\t\t<h2>Expand your knowledge of SQL<\/h2><figure class=\"wp-block-image size-large\" style=\"margin-top:var(--wp--preset--spacing--columns);margin-bottom:var(--wp--preset--spacing--columns)\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"572\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2026\/02\/code-development-environment-1024x572.jpg\" alt=\"Screen displaying a development environment with SQL code being written.\" class=\"wp-image-207513\" srcset=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2026\/02\/code-development-environment-1024x572.jpg 1024w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2026\/02\/code-development-environment-300x167.jpg 300w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2026\/02\/code-development-environment-768x429.jpg 768w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2026\/02\/code-development-environment-1536x857.jpg 1536w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2026\/02\/code-development-environment-2048x1143.jpg 2048w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2026\/02\/code-development-environment-440x246.jpg 440w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2026\/02\/code-development-environment-785x438.jpg 785w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2026\/02\/code-development-environment-210x117.jpg 210w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2026\/02\/code-development-environment-115x64.jpg 115w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\t\t\n\t\t<p>While SQL is the indispensable basis for manipulating relational databases, mastering it requires training and many hours of practice. That&#8217;s why we offer a range of training courses at Liora. Each course is tailored to your specific needs, either in terms of business or tools.<\/p>\t\t\n\t\t\t\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex is-content-justification-center\"><div class=\"wp-block-button \"><a class=\"wp-block-button__link wp-element-button \" href=\"\/en\/courses\/data-ai\/data-scientist\">Discover Liora&#8217;s SQL curriculum<\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Because databases are constantly evolving, it&#8217;s essential to be familiar with the UPDATE SQL query. This allows you to modify one or more rows in your table. So how do you use it? We explain it all in this article. What is SQL UPDATE? The SQL UPDATE command is used to update data within a [&hellip;]<\/p>\n","protected":false},"author":76,"featured_media":207700,"comment_status":"open","ping_status":"open","sticky":false,"template":"elementor_theme","format":"standard","meta":{"_acf_changed":false,"editor_notices":[],"footnotes":""},"categories":[2433],"class_list":["post-175680","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-ai"],"acf":[],"_links":{"self":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/175680","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/users\/76"}],"replies":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/comments?post=175680"}],"version-history":[{"count":3,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/175680\/revisions"}],"predecessor-version":[{"id":207701,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/175680\/revisions\/207701"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media\/207700"}],"wp:attachment":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media?parent=175680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/categories?post=175680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}