Previous Topic

Next Topic

How You Add a Table for Updating the Route Table

The query for returning routes that match the search criteria involves an SQL join between the route table and the airline table. The resulting DataGridView contains columns taken from both tables.

A number of methods can be used to extract the data from the DataGridView row before calling an adapter command (see IngresDataAdapter5). The addition of the updateRoute table in the RouteDataSet is illustrated here.

Add Data Table

Rename the newly created data table in the Properties panel from DataTable to updateRoute.

Add the following columns:

Column Name

Type

Key field

rt_airline

System.String

Y

rt_flight_num

System.Int32

Y

rt_depart_from

System.String

N

rt_arrive_to

System.String

N

rt_depart_at

System.DateTime

N

rt_arrive_at

System.DateTime

N

rt_arrive_offset

System.Sbyte

N

rt_flight_day

System.String

Y

Update Route

The RouteDataSet now contains two definitions for tables, route and updateRoute.

Route DataSet


© 2006 Ingres Corporation. All rights reserved.