home *** CD-ROM | disk | FTP | other *** search
- 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
- Newsgroups: bit.listserv.vm-util
- Subject: Re: RXSQL problems with UPDATE
- Message-ID: <16B619D9F.CFORDE@bcsc02.gov.bc.ca>
- From: CFORDE@bcsc02.gov.bc.ca (Carl Forde)
- Date: Mon, 25 Jan 93 11:12:28 PST
- References: <VM-UTIL%93012110574766@VM.MARIST.EDU>
- Organization: BC Systems Corporation
- Nntp-Posting-Host: bcsc02.gov.bc.ca
- Lines: 42
-
- In article <VM-UTIL%93012110574766@VM.MARIST.EDU>
- Dan Newcombe <STDN@MARIST.BITNET> writes:
-
- >Hi.. I can't find anyplace better to place this, and as RXSQL is a
- >VM Utility :)
-
- You might be interested in the SQLINFO list at UICVM. It is mainly
- concerned with SQL/DS but other DBMSes are covered as well.
-
- >
- >I have an exec that is trying to use SQL to do an update on a table.
- >I have narrowed it down from updating all the columns at once to just
- >trying to get it to update the trouble column. The trouble column
- >is of type DECIMAL (4,2). The RXSQL statement is:
- >'RXSQL PREP UPD UPDATE AIDE_LIST SET PAYRATE=4.56 WHERE AIDE_NO=42'
- >'RXSQL EXEC UPD'
-
- Try the following:
-
- >'RXSQL EXEC UPDATE AIDE_LIST SET PAYRATE=4.56 WHERE AIDE_NO=42'
-
- >This returns a RC of 8 and and SQLCODE of -104, a portion of the
- >statement is incorrect.
-
- Yes, "UPD" is not an SQL statement.
-
- >I tried pipes:
- >PIPE SQL EXECUTE 'UPDATE AIDE_LIST SET PAYRATE=4.56 WHERE AIDE_NO=42'
-
- This worked for me.
-
- >still got an error, so I went into QMF and put the update statement
- >in and it worked just fine.
- >
- > Anyone have any clues???
-
- Hope the above helps.
-
- Have fun,
- Carl Forde phonenet: 604-389-3234
- VM Systems Software Group bitnet : CFORDE@BCSC02
- British Columbia Systems Corporation internet: cforde@bcsc02.gov.bc.ca
-