home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / informix / 2876 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.3 KB

  1. Path: sparky!uunet!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!swrinde!emory!emory!not-for-mail
  2. From: unifi!goofy.unifi.com!bharat@uunet.UU.NET (Bharat Shah)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re: UPDATE problem on UNIQUEly INDEXed table on DOS
  5. Date: 6 Jan 1993 18:23:06 -0500
  6. Organization: Mailing List Gateway
  7. Lines: 23
  8. Sender: walt@mathcs.emory.edu
  9. Distribution: world
  10. Message-ID: <1ifpkqINNlc9@emory.mathcs.emory.edu>
  11. Reply-To: unifi!goofy.unifi.com!bharat@uunet.UU.NET (Bharat Shah)
  12. NNTP-Posting-Host: emory.mathcs.emory.edu
  13. X-Informix-List-ID: <list.1753>
  14.  
  15. Use the following:
  16.  
  17. begin work
  18.  
  19. update fartigos                       /* Shift things beyond N */
  20. set c_int_art = c_int_art + N + 1
  21. where c_int_g = ....
  22.   .. and c_int_art >= K
  23.  
  24. insert into fartigos values (....., K)    /* Place your stuff */
  25.  
  26. update fartigos                   /* Bring back records into domain */
  27. set c_int_art = c_int_art - N
  28. where c_int_g = ...
  29. and c_int_art >= K+N
  30.  
  31. commit work
  32.  
  33. ========================================================================
  34. Bharat Shah                                        Voice: (508)-663-7570
  35. Unifi Communications Corp.                           Fax: (508)-663-7543
  36. 4 Federal St, Billerica, Mass 01821, USA          uunet!bharat@unifi.com
  37. ========================================================================
  38.