16.10.2015 Views

Getting Started with DB2 Express-C

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

158 <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> <strong>DB2</strong> <strong>Express</strong>-C<br />

- product_id: unique identifier of the item being purchased<br />

- description: description of the item<br />

- quantity: the quantity purchased<br />

- cost: the cost of the item<br />

- image: a picture of the item (if available)<br />

- project_num: the project this product has been purchased for<br />

3. In the first page of the wizard, for the schema name, enter the user ID you are<br />

currently logged on as, and use the following table name: SUPPLIES. You can also<br />

optionally enter a comment. Click the Next button to continue to the next page of<br />

the wizard.<br />

4. From this page, you can add columns to the table. Click the ADD button to add<br />

columns<br />

5. Enter the column name product_id and select the data type: INTEGER. Uncheck<br />

Nullable, and click the Apply button to define the column.<br />

6. Repeat this step for the remaining columns of the table using the options shown in<br />

the table below. Once all columns have been added (Applied), click the OK button<br />

and the list of the columns you just created should be summarized. Click the Next<br />

button to continue to the next page of the wizard.<br />

Column Name<br />

product_id (completed)<br />

description<br />

Attributes<br />

INTEGER, NOT NULL<br />

VARCHAR, length 40, NOT NULL

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!