home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / visdb2tk.zip / DEMODB.SQL < prev    next >
Text File  |  1995-10-02  |  928b  |  17 lines

  1. drop database demo
  2. connect reset
  3. -- ** Comment out the following line if you wish to specify a path for the database
  4. create database demo
  5. -- ** Include one of the lines below to specify a drive for the database.  Amend as neccessary.  (Ist line for DB2/2, second for DB2/6000)
  6. -- create database demo on c
  7. -- create database demo on /home/db2
  8. connect to demo
  9. import from dept.ixf of ixf modified by forcein create into department
  10. import from emp.ixf of ixf modified by forcein create into employee
  11. alter table department primary key (deptno)
  12. -- ** Amend the 3 lines that follow to change the location of your tablespace.  You must change these for DB2/6000.
  13. create tablespace regular managed by database using (file 'c:\demoreg' 500)
  14. create long tablespace longspace managed by database using (file 'c:\demolong' 500)
  15. create tablespace indexspace managed by database using (file 'c:\demoind' 500)
  16. connect reset
  17.