{"id":2570,"date":"2019-03-25T17:40:12","date_gmt":"2019-03-25T20:40:12","guid":{"rendered":"http:\/\/xexeu.elipse.com.br\/pt\/using-databases-in-e3-chapter-6-editing-records\/"},"modified":"2022-01-14T10:24:45","modified_gmt":"2022-01-14T13:24:45","slug":"using-databases-in-e3-chapter-6-editing-records","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/using-databases-in-e3-chapter-6-editing-records\/","title":{"rendered":"Using Databases in E3: Chapter 6 &#8211; Editing Records."},"content":{"rendered":"<p align=\"justify\">To edit a record of the Historic, you must use the <b>UPDATE<\/b> clause. This is the SQL code structure.<\/p>\n<pre>UPDATE (function used) TABLENAME (table used)\r\nSET FIELDNAME2 (field of the variable to modify) = NEWFIELDVALUE\r\nWHERE FIELDNAME1 (field of the variable used as a filter) = FIELDVALUE<\/pre>\n<p align=\"justify\">As shown in the next example.<\/p>\n<p align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4212\/kb_4212_fig_001.png\" alt=\"\" width=\"539\" height=\"152\" align=\"bottom\" border=\"0\" \/><\/p>\n<p align=\"center\"><span style=\"font-size: xx-small;\"><b>Figure 1:<\/b> Example SQL code for editing records<\/span><\/p>\n<p align=\"justify\">In this example, <code>FieldVar2<\/code> is the variable to modify and <code>FieldVar<\/code> is the variable used as a filter.<\/p>\n<p align=\"justify\">To select and set a value to a variable, you must write to the variable which is used as a filter, whether it is a date or a value.<\/p>\n<p align=\"justify\">The method used to set a filter value and the new value to the selected record is <b>SetVariableValue<\/b>, as displayed in the following figure.<\/p>\n<p align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4212\/kb_4212_fig_002.png\" alt=\"\" width=\"555\" height=\"118\" align=\"bottom\" border=\"0\" \/><\/p>\n<p align=\"center\"><span style=\"font-size: xx-small;\"><b>Figure 2<\/b>: Script showing how to use the <b>SetVariableValue<\/b> method<\/span><\/p>\n<p align=\"justify\">In this example, <code>FieldVar2<\/code> is the variable to modify and <code>FieldVar<\/code> is the variable used as a filter.<\/p>\n<p align=\"justify\"><b>Exercise<\/b><\/p>\n<div align=\"justify\">\n<ol>\n<li>Create a Query and a button to update values on the table, using the Setpoints created previously.<\/li>\n<\/ol>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>To edit a record of the Historic, you must use the UPDATE clause. This is the SQL code structure. UPDATE (function used) TABLENAME (table used) SET FIELDNAME2 (field of the&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[735],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Using Databases in E3: Chapter 6 - Using Databases in E3: Chapter 6 - Editing Records.[:] - Elipse Knowledgebase<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kb.elipse.com.br\/en\/using-databases-in-e3-chapter-6-editing-records\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using Databases in E3: Chapter 6 - Editing Records.\" \/>\n<meta property=\"og:description\" content=\"To edit a record of the Historic, you must use the UPDATE clause. This is the SQL code structure. UPDATE (function used) TABLENAME (table used) SET FIELDNAME2 (field of the&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/en\/using-databases-in-e3-chapter-6-editing-records\/\" \/>\n<meta property=\"og:site_name\" content=\"Elipse Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/elipsesoftware\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-25T20:40:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-14T13:24:45+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4212\/kb_4212_fig_001.png\" \/>\n<meta name=\"author\" content=\"Elipse Software\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Elipse Software\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-databases-in-e3-chapter-6-editing-records\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-databases-in-e3-chapter-6-editing-records\/\"},\"author\":{\"name\":\"Elipse Software\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\"},\"headline\":\"Using Databases in E3: Chapter 6 &#8211; Editing Records.\",\"datePublished\":\"2019-03-25T20:40:12+00:00\",\"dateModified\":\"2022-01-14T13:24:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-databases-in-e3-chapter-6-editing-records\/\"},\"wordCount\":308,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"articleSection\":[\"DataBases\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/using-databases-in-e3-chapter-6-editing-records\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-databases-in-e3-chapter-6-editing-records\/\",\"url\":\"https:\/\/kb.elipse.com.br\/en\/using-databases-in-e3-chapter-6-editing-records\/\",\"name\":\"[:pt]Using Databases in E3: Chapter 6 - Editing Records.[:en]Using Databases in E3: Chapter 6 - Editing Records.[:] - Elipse Knowledgebase\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2019-03-25T20:40:12+00:00\",\"dateModified\":\"2022-01-14T13:24:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-databases-in-e3-chapter-6-editing-records\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/using-databases-in-e3-chapter-6-editing-records\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-databases-in-e3-chapter-6-editing-records\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using Databases in E3: Chapter 6 &#8211; Editing Records.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kb.elipse.com.br\/#website\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"name\":\"Elipse Knowledgebase\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kb.elipse.com.br\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\",\"name\":\"Elipse Software\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"sameAs\":[\"http:\/\/www.facebook.com\/elipsesoftware\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"contentUrl\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"width\":161,\"height\":58,\"caption\":\"Elipse Software\"},\"image\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\",\"name\":\"Elipse Software\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g\",\"caption\":\"Elipse Software\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/webmasterelipse-com-br\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using Databases in E3: Chapter 6 - Using Databases in E3: Chapter 6 - Editing Records.[:] - Elipse Knowledgebase","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:\/\/kb.elipse.com.br\/en\/using-databases-in-e3-chapter-6-editing-records\/","og_locale":"en_US","og_type":"article","og_title":"[:pt]Using Databases in E3: Chapter 6 - Editing Records.[:en]Using Databases in E3: Chapter 6 - Editing Records.[:] - Elipse Knowledgebase","og_description":"To edit a record of the Historic, you must use the UPDATE clause. This is the SQL code structure. UPDATE (function used) TABLENAME (table used) SET FIELDNAME2 (field of the&hellip;","og_url":"https:\/\/kb.elipse.com.br\/en\/using-databases-in-e3-chapter-6-editing-records\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2019-03-25T20:40:12+00:00","article_modified_time":"2022-01-14T13:24:45+00:00","og_image":[{"url":"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4212\/kb_4212_fig_001.png"}],"author":"Elipse Software","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Elipse Software","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/en\/using-databases-in-e3-chapter-6-editing-records\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/en\/using-databases-in-e3-chapter-6-editing-records\/"},"author":{"name":"Elipse Software","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87"},"headline":"Using Databases in E3: Chapter 6 &#8211; Editing Records.","datePublished":"2019-03-25T20:40:12+00:00","dateModified":"2022-01-14T13:24:45+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/en\/using-databases-in-e3-chapter-6-editing-records\/"},"wordCount":308,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"articleSection":["DataBases"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/en\/using-databases-in-e3-chapter-6-editing-records\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/en\/using-databases-in-e3-chapter-6-editing-records\/","url":"https:\/\/kb.elipse.com.br\/en\/using-databases-in-e3-chapter-6-editing-records\/","name":"[:pt]Using Databases in E3: Chapter 6 - Editing Records.[:en]Using Databases in E3: Chapter 6 - Editing Records.[:] - Elipse Knowledgebase","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2019-03-25T20:40:12+00:00","dateModified":"2022-01-14T13:24:45+00:00","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/en\/using-databases-in-e3-chapter-6-editing-records\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/en\/using-databases-in-e3-chapter-6-editing-records\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/en\/using-databases-in-e3-chapter-6-editing-records\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"Using Databases in E3: Chapter 6 &#8211; Editing Records."}]},{"@type":"WebSite","@id":"https:\/\/kb.elipse.com.br\/#website","url":"https:\/\/kb.elipse.com.br\/","name":"Elipse Knowledgebase","description":"","publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kb.elipse.com.br\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/kb.elipse.com.br\/#organization","name":"Elipse Software","url":"https:\/\/kb.elipse.com.br\/","sameAs":["http:\/\/www.facebook.com\/elipsesoftware"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","contentUrl":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","width":161,"height":58,"caption":"Elipse Software"},"image":{"@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87","name":"Elipse Software","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g","caption":"Elipse Software"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/webmasterelipse-com-br\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/2570"}],"collection":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=2570"}],"version-history":[{"count":1,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/2570\/revisions"}],"predecessor-version":[{"id":12787,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/2570\/revisions\/12787"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=2570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=2570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=2570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}