Microsoft Word - Sam's Teach Yourself MySQL in 21 Days - SAMS.doc

(singke) #1
ƒ Select the Customer_ID from the Customers table.
ƒ Select the Order_ID, Order_Date, Required_Date, and
Ship_Date from the Orders table. You should end up with
something similar to Figure 8.3.

Figure 8.3 The query selection.



  1. After you have selected the fields, run the query. You can do this by clicking the
    exclamation point on the toolbar. Your screen should look similar to Figure 8.4.


Figure 8.4 The query results.



  1. Save the query as OrdersImport. After you have saved the query, right-click
    the query's name. A pop-up menu should appear. Scroll down to Export on the
    menu and left-click.

  2. You should now see the Export Query dialog box (see Figure 8.5). The filename
    should default to the name of the query—OrdersImport. Underneath the
    filename are your export choices. For now, choose the Text File option and click
    the Save button.


Figure 8.5 The Export Query dialog box.



  1. The Export Text Wizard will automatically start (see Figure 8.6.). The Wizard
    helps you format your file. Remember, you want a file where the fields are
    separated by commas and text fields are enclosed by quotation marks. Make sure
    the Delimited option is checked, and then click Next.

Free download pdf