home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / bit / listserv / vmutil / 1893 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.8 KB

  1. Path: sparky!uunet!usc!sdd.hp.com!saimiri.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!spruce.pfc.forestry.ca!bcsystems!bcsc02.gov.bc.ca!CFORDE
  2. Newsgroups: bit.listserv.vm-util
  3. Subject: Re: RXSQL problems with UPDATE
  4. Message-ID: <16B619D9F.CFORDE@bcsc02.gov.bc.ca>
  5. From: CFORDE@bcsc02.gov.bc.ca (Carl Forde)
  6. Date: Mon, 25 Jan 93 11:12:28 PST
  7. References: <VM-UTIL%93012110574766@VM.MARIST.EDU>
  8. Organization: BC Systems Corporation
  9. Nntp-Posting-Host: bcsc02.gov.bc.ca
  10. Lines: 42
  11.  
  12. In article <VM-UTIL%93012110574766@VM.MARIST.EDU>
  13. Dan Newcombe <STDN@MARIST.BITNET> writes:
  14.  
  15. >Hi.. I can't find anyplace better to place this, and as RXSQL is a
  16. >VM Utility :)
  17.  
  18. You might be interested in the SQLINFO list at UICVM.  It is mainly
  19. concerned with SQL/DS but other DBMSes are covered as well.
  20.  
  21. >
  22. >I have an exec that is trying to use SQL to do an update on a table.
  23. >I have narrowed it down from updating all the columns at once to just
  24. >trying to get it to update the trouble column.  The trouble column
  25. >is of type DECIMAL (4,2).  The RXSQL statement is:
  26. >'RXSQL PREP UPD UPDATE AIDE_LIST SET PAYRATE=4.56 WHERE AIDE_NO=42'
  27. >'RXSQL EXEC UPD'
  28.  
  29. Try the following:
  30.  
  31. >'RXSQL EXEC UPDATE AIDE_LIST SET PAYRATE=4.56 WHERE AIDE_NO=42'
  32.  
  33. >This returns a RC of 8 and and SQLCODE of -104, a portion of the
  34. >statement is incorrect.
  35.  
  36. Yes, "UPD" is not an SQL statement.
  37.  
  38. >I tried pipes:
  39. >PIPE SQL EXECUTE 'UPDATE AIDE_LIST SET PAYRATE=4.56 WHERE AIDE_NO=42'
  40.  
  41. This worked for me.
  42.  
  43. >still got an error, so I went into QMF and put the update statement
  44. >in and it worked just fine.
  45. >
  46. >  Anyone have any clues???
  47.  
  48. Hope the above helps.
  49.  
  50. Have fun,
  51. Carl Forde                            phonenet: 604-389-3234
  52. VM Systems Software Group             bitnet  : CFORDE@BCSC02
  53. British Columbia Systems Corporation  internet: cforde@bcsc02.gov.bc.ca
  54.