home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _EFA7746E9DFA4B3EB643B8C55D461E1C < prev    next >
Encoding:
Text File  |  2002-08-29  |  1.5 KB  |  39 lines

  1.  
  2. Shape strings to be used when importing data from the Data_shape.mdb file. 
  3. The Data_shape.mdb file was created by exporting to an Access database from the
  4. Data_shape.xml file. 
  5.  
  6. To be able to use the Shape language you have Microsoft Data Access Components 
  7. later than Version 2.1 installed on your computer.
  8.  
  9. Shape string to import Division and Persons
  10. Shape {SELECT * FROM Division} as Division
  11.      APPEND ({SELECT * FROM Person} as Person
  12.      RELATE PrimaryKey to ForeignKey) as Person
  13.  
  14.  
  15. Shape String to import Company, Division and Persons
  16. SHAPE {SELECT * FROM Company} as Company
  17.     APPEND((Shape {SELECT * FROM Division} as Division
  18.       APPEND ({SELECT * FROM Person} as Person
  19.       RELATE PrimaryKey to ForeignKey) as Person) as Division
  20.     RELATE PrimaryKey to ForeignKey) as Division
  21.  
  22.  
  23. Shape string to import Company, Address and Division
  24. SHAPE {SELECT * FROM Company} as Company
  25.     APPEND ({SELECT * FROM Address} as Address
  26.     RELATE PrimaryKey to ForeignKey) as Address,
  27.                    ({SELECT * FROM Division} as Division
  28.     RELATE PrimaryKey to ForeignKey) as Division
  29.  
  30.  
  31. Shape string to import Company, Address, Division and Persons
  32. SHAPE {SELECT * FROM Company} as Company
  33. APPEND({SELECT * FROM Address} as Address
  34.   RELATE PrimaryKey to ForeignKey) as Address,
  35.    ((SHAPE{SELECT * FROM Division} as Division
  36.       APPEND ({SELECT * FROM Person} as Person
  37.       RELATE PrimaryKey to ForeignKey) as Person) as Division
  38.     RELATE PrimaryKey to ForeignKey) as Division
  39.