--***************************************************************************
-- Licensed Materials - Property of IBM
--
-- Governed under the terms of the International
-- License Agreement for Non-Warranted Sample Code.
--
-- (C) COPYRIGHT International Business Machines Corp. 2006
-- All Rights Reserved.
--
-- US Government Users Restricted Rights - Use, duplication or
-- disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
--***************************************************************************
-- sample script for setting up a db2 database for xml on a windows 2000 system
-- to invoke, open a db2 command window and type "db2 -tvf tutorial.sql"
-- this script presumes the db2 "sample" database exists.
-- if not, uncomment the following line.
-- create database sample using codeset utf-8 territory us;
CONNECT TO sample;
-- the following line will fail on the first run because no "clients" table exists.
-- ignore the failure. or, alternately, comment out this line.
drop table clients;
create table clients(id int primary key not null, name varchar(50), status varchar(10), contactinfo xml);
-- insert sample data
insert into clients values (3227, 'Ella Kimpton', 'Gold',
'
5401 Julio Ave.
San Jose
CA
95116
4084630000
4081111111
| 4082222222 |
4087776666
love2shop@yahoo.com
'
);
insert into clients values (8877, 'Chris Bontempo', 'Gold',
'
1204 Meridian Ave.
4A
San Jose
CA
95124
4084440000
4085555555
'
);
insert into clients values (9077, 'Lisa Hansen', 'Silver',
'
9407 Los Gatos Blvd.
Los Gatos
CA
95032
4083332222
'
);
insert into clients values (9177, 'Rita Gomez', 'Standard',
'
501 N. First St.
Campbell
CA
95041
4081221331
4087799881 |
golfer12@yahoo.com
'
);
insert into clients values (5681, 'Paula Lipenski', 'Standard',
'
1912 Koch Lane
San Jose
CA
95125
4085430091 |
beatlesfan36@hotmail.com
lennonfan36@hotmail.com
'
);
insert into clients values (4309, 'Tina Wang', 'Standard',
'
4209 El Camino Real
Mountain View
CA
95033
6503310091
'
);