Oracle 5.0 Reference Manual page 1801

Table of Contents

Advertisement

20.1.5.5. Using Connector/ODBC with Microsoft Word or Excel
You can use Microsoft Word and Microsoft Excel to access information from a MySQL database using
Connector/ODBC. Within Microsoft Word, this facility is most useful when importing data for mailmerge,
or for tables and data to be included in reports. Within Microsoft Excel, you can execute queries on
your MySQL server and import the data directly into an Excel Worksheet, presenting the data as a
series of rows and columns.
With both applications, data is accessed and imported into the application using Microsoft Query, which
lets you execute a query though an ODBC source. You use Microsoft Query to build the SQL statement
to be executed, selecting the tables, fields, selection criteria and sort order. For example, to insert
information from a table in the World test database into an Excel spreadsheet, using the DSN samples
shown in
Section 20.1.4, "Configuring
1. Create a new Worksheet.
2. From the
Data
Query.
3. Microsoft Query will start. First, you need to choose the data source, by selecting an existing Data
Source Name.
4. Within the
configured through the DSN is shown on the left, the columns that will be added to your query are
shown on the right. The columns you choose are equivalent to those in the first section of a
query. Click Next to continue.
Connector/ODBC Examples
Connector/ODBC":
menu, choose
Import External
Wizard, choose the columns to import. The list of tables available to the user
Query
Data, and then select
1781
New Database
SELECT

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents