home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / database / oracle / 2269 < prev    next >
Encoding:
Text File  |  1992-11-22  |  1.6 KB  |  48 lines

  1. Newsgroups: comp.databases.oracle
  2. Path: sparky!uunet!mcsun!chsun!osnbe!
  3. From: rheiger@renext.open.ch (Richard H. E. Eiger)
  4. Subject: Re: Long insert statement in PCC ireclen exceeded.
  5. Message-ID: <1992Nov22.180113.15378@osnbe.Olivetti.ch>
  6. Sender: @osnbe.Olivetti.ch
  7. Nntp-Posting-Host: renext
  8. Reply-To: rheiger@renext.open.ch
  9. Organization: Olivetti (Schweiz) AG, Branch Office Berne
  10. References: <By0u21.I5A@da_vinci.it.uswc.uswest.com>
  11. Date: Sun, 22 Nov 1992 18:01:13 GMT
  12. Lines: 34
  13.  
  14. In article <By0u21.I5A@da_vinci.it.uswc.uswest.com>  
  15. twood@windward.it.uswc.uswest.com (Tim Woodward) writes:
  16. > In article <BxvLKB.4uC@inews.Intel.COM> kortikar@mipos2.intel.com (Aniruddha  
  17. Kortikar) writes:
  18. > >I have a long insert statement in PRO*C insert into table ( ....) values  
  19. (...)
  20. > >ireclen is exceeded.
  21. > >
  22. > >I tried 
  23. > >char stmt[1000];
  24. > >sprintf(stmt,"insert into ... values (:v1,:v2);");
  25. > >exec sql execute s using :val1,:val2 ....
  26. > >but even then the exec sql execute s using is about 300 chars long.
  27. > >
  28. >  Did you set IRECLEN=1000 (or whatever size is needed) on the
  29. >  precompiler invocation line?
  30. >  Tim Woodward
  31. >  U S WEST
  32.  
  33. This may not help. As far as I know the ireclen has an upper bound < 200 chars.  
  34. However, you could always compose the statement using several steps so that no  
  35. line is longer than say 132 chars (or even 80 chars for readability).
  36.  
  37. Hope this helps.
  38.  
  39. --
  40.                          
  41.     ___           _____2
  42.    /   )  /  /   /        Richard H. E. Eiger
  43.   /_ _/  /__/   /__       Ing. Informatik HTL
  44.  /\     /  /   /          Unregistered NeXT fan
  45. /  \   /  /   /_____      rheiger@renext.open.ch (NeXT mail welcome)
  46.