home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / database / oracle / 1140 < prev    next >
Encoding:
Internet Message Format  |  1992-07-26  |  2.4 KB

  1. Path: sparky!uunet!decwrl!oracle!unrepliable!bounce
  2. Newsgroups: comp.databases.oracle
  3. From: dbmoore@us.oracle.com (Dennis Moore)
  4. Subject: Re: Forms3 ERR - unable to INSERT record
  5. Message-ID: <1992Jul25.022206.12578@oracle.us.oracle.com>
  6. Summary: ON-INSERT, -UPDATE, -DELETE triggers
  7. Sender: usenet@oracle.us.oracle.com (Oracle News Poster)
  8. Nntp-Posting-Host: hqsun4.us.oracle.com
  9. Organization: not an official statement of Oracle Corporation, Redwood Shores CA
  10. References: <1992Jul22.105329.244@falcon.navsses.navy.mil> <dewey-220792114200@sebastian.centerline.com>
  11. Date: Sat, 25 Jul 1992 02:22:06 GMT
  12. X-Disclaimer: This message was written by an unauthenticated user
  13.               at Oracle Corporation.  The opinions expressed are those
  14.               of the user and not necessarily those of Oracle.
  15. Lines: 36
  16.  
  17. In article <dewey-220792114200@sebastian.centerline.com> dewey@centerline.com (Devan F. Dewey) writes:
  18. >In article <1992Jul22.105329.244@falcon.navsses.navy.mil>,
  19. >huynh@falcon.navsses.navy.mil wrote:
  20. >> 
  21. >> Greetings,
  22. >>            thanks for reading.
  23. >> I am doing a project on SQLFORMS version 3.0.  The project is simply to join
  24. >> three tables in addition with a new one.  
  25. >> 
  26. >> For every execution, after hitting the commit key, I keep getting the error:
  27. >> FRM 40508 : ORACLE ERROR -- unable to INSERT record
  28. >>
  29. >> Any suggestions would be appreciated.  Many thanks.
  30. >
  31. >You cannot use Forms to insert or update data in a view. Forms acutally
  32. >uses the rowid field when performing these tasks and there is no rowid
  33. >field for a view. Views are only useful for query only blocks.
  34. >
  35. >You are going to have to break up the blocks so that the block you which to
  36. >insert from has a base table which is a true table, not a view.
  37. >
  38. >                             
  39. >               Devan F. Dewey | Senior Systems Analyst
  40. >          CenterLine Software | dewey@centerline.com
  41. >            10 Fawcett Street | "Leme esplain - no dere is
  42. >          Cambridge, MA 02138 | too much. Leme sum up."
  43. >                                       -Inigo Montoya
  44.  
  45. Actually, see the manual sections on the ON-INSERT, ON-UPDATE, and ON-DELETE.
  46. These triggers are specifically useful for updating through views.
  47. Incidentally, the fact that Forms uses ROWID has nothing to do with updating
  48. or inserting into views based on multiple tables -- this is a SQL restriction.
  49.  
  50. Good luck!
  51.  
  52. -- Dennis Moore, my own opinions, etcetcetc
  53.