/[corp_html]/back/phexample/createdb.sql
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /back/phexample/createdb.sql

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (vendor branch)
Fri Jan 26 17:53:59 2001 UTC (23 years, 3 months ago) by dpavlin
Branch: MAIN, dbp
CVS Tags: alpha, HEAD
Changes since 1.1: +0 -0 lines
alpha

1
2 /* delete all objects before creating them, so this script can be re-run
3 when changes are made to the schema. */
4
5 drop sequence contactseq;
6 CREATE SEQUENCE contactseq start 1 ;
7
8 drop sequence photoseq;
9 CREATE SEQUENCE photoseq start 1 ;
10
11 drop table contact;
12 create table contact (
13 id int default nextval( 'contactseq' ) not null,
14 firstname varchar(50),
15 lastname varchar(50),
16 phone char(10),
17 email varchar(50),
18 typeid char(1),
19 photo varchar(20),
20 origphoto varchar(20),
21 notes text,
22 testid int,
23 primary key( id )
24 );

  ViewVC Help
Powered by ViewVC 1.1.26