home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / oracle / 2941 < prev    next >
Encoding:
Text File  |  1993-01-25  |  1.0 KB  |  45 lines

  1. Newsgroups: comp.databases.oracle
  2. Path: sparky!uunet!psinntp!sunic!seunet!abbaut!asjohans
  3. From: asjohans@aut.abb.se (Anders S Johansson)
  4. Subject: Structured datatypes in Oracle ?
  5. Message-ID: <1993Jan25.135051.28139@aut.abb.se>
  6. Date: Mon, 25 Jan 1993 13:50:51 GMT
  7. Organization: ABB Automation AB, Vasteras, Sweden
  8. Lines: 35
  9.  
  10. I have ran into a problem which cannot be handled automatically by 
  11. the Oracle Data Base.
  12.  
  13. The problem I have is that I want to store user defined data types
  14. in Oracle tables.
  15. The data types can be arrays, unions or structs.
  16. The compination of the data types can be unlimited.
  17.  
  18. Example (C'ish-style):
  19.  
  20. typedef struct S1
  21. {
  22.   NUMBER a;
  23.   CHAR b
  24. }
  25.  
  26. typedef Array A1 of S1[100]
  27.  
  28. typedef S2
  29. {
  30.   S1 aa;
  31.   A1 bb;
  32.   NUMBER cc;
  33. }
  34.  
  35. Attributes with the data type S2 shall be stored in Oracle in some way.
  36.  
  37. The immediate solution I have is to split the data type in several tables
  38. with references between them.
  39.  
  40. Has anyone been dealing with similar problems, please contact me.
  41.  
  42. /Anders Johansson
  43.  Lulea, Sweden.
  44.  asjohans%abbaut@mail.swip.net
  45.