To get you started as quickly as possible, we will discuss INSERT, UPDATE, and DELETE before we get into the specifics of data types and functions.To INSERT, UPDATE, or DELETE data, you must know about the columns in the table:
> What are the column names?
> What is the order of the columns in the table?
> What is the data type of each column?
> Must the column’s value be unique within that column?
> Does each column have a default value?
> Can the column’s value be NULL?
> Is the column a key or part of a key?
> Remember that the order of rows are unimportant and you have no control over the physical location of rows. ORDER BY can be used to set the sequence of the rows retrieved.
> If you are executing transactions, you must use a COMMIT after your last INSERT, UPDATE, or DELETE to make the changes permanent.
> On your RDBMS system, to see the actual column titles, sequence, and values use a SELECT * FROM table, where “table” is the table name.
Note: To see the table and column definitions used in this course, in any EXAMPLE or LAB, click on the TABLE button, click on the table name you wish to see, and then click on the DEFINED button to see the table definition.