Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 4. Data Manipulation with DML > Modifying data with UPDATE

Modifying data with UPDATE

Next in our examination of the subject of data manipulation is the ability to change existing database data. This section looks at a number of the common methods to update data within our database.

Understanding the purpose and syntax of the UPDATE statement

The first of our DML statements allowed us to insert new data into a table. However, often the data we're interested in already exists in the table and simply needs to be altered in some way. In these circumstances, we need to modify the data, not insert it. In such situations, we use an UPDATE statement. Its syntax tree is shown as follows:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial