Database Toolbox Previous page   Next Page

Exporting BOOLEAN Data

This example adds two rows of data to the Products table in the Access Nwind database.

  1. In the MATLAB Command Window, create the structure P, which will be exported, by typing these commands:
  2. For the Data operation, choose Insert.
  3. From Data source, select a data source; for this example, SampleDB.
  4. From Tables, select a table; for this example, Products.
  5. From Fields, select the fields; for this example, ProductName and Discontinued.
  6. Assign the MATLAB workspace variable; for this example, use P.
  7. Click Execute to run the query.
  1. The VQB inserts two new rows into the Products table.

  1. View the table in Microsoft Access to ensure the data was correctly inserted.


Previous page  BOOLEAN (MATLAB logical) Data Using VQB Queries in Database Toolbox Functions Next page

© 1994-2005 The MathWorks, Inc.