~ubuntu-branches/ubuntu/hardy/libpgjava/hardy

« back to all changes in this revision

Viewing changes to src/interfaces/jdbc/example/corba/stock.sql

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Gybas
  • Date: 2002-02-06 23:43:06 UTC
  • Revision ID: james.westby@ubuntu.com-20020206234306-hsg7suqr8q56qg40
Tags: upstream-7.2
ImportĀ upstreamĀ versionĀ 7.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--
 
2
-- This creates the database for the stock example
 
3
-- $Id: stock.sql,v 1.1 1999/01/25 21:22:04 scrappy Exp $
 
4
--
 
5
drop table stock;
 
6
 
 
7
create table stock (
 
8
        id int4,
 
9
        avail int4,
 
10
        ordered int4,
 
11
        valid bool,
 
12
        description text
 
13
);
 
14
 
 
15
create index stock_id on stock(id);
 
16
 
 
17
copy stock from stdin;
 
18
1       19      0       t       Dell Latitude XPi P133 Laptop
 
19
2       3       2       t       Iomega Zip Plus drive
 
20
3       2       0       f       Iomega Ext/Par drive
 
21
4       0       4       t       Iomega Ext USB drive
 
22
5       200     0       t       Blank Unbranded CDR media
 
23
6       20      30      t       Iomega Zip media 100Mb
 
24
\.
 
25
 
 
26
grant all on stock to public;
 
27
grant all on stock_id to public;