< Day Day Up > |
Chapter 7. Update StatementsThis chapter covers the following exam topics: Questions on the material in this chapter make up approximately 10% of the exam. This chapter discusses SQL statements that modify the contents of database tables:
Another statement that modifies table contents is LOAD DATA INFILE, which reads records from a datafile and loads them into a table. It's discussed in Chapter 9, "Importing and Exporting Data." Note that for purposes of discussion here, the term "update statement" is used in a collective sense to refer to various kinds of statements that modify tables. "UPDATE statement" refers specifically to statements that begin with the UPDATE keyword. Also, keep in mind the following terminology with regard to indexes:
Much of the discussion in this chapter uses the following table as a source of examples: CREATE TABLE people ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, name CHAR(40) NOT NULL, age INT NOT NULL, PRIMARY KEY (id) ); |
< Day Day Up > |