Re: Update Statement
Posted in 2001
This is a multi-part message in MIME format. --------------454467EE8C9FEC5B3110BB5A Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Kirk. If you need to update *all* the rows in the admin.subc table, then try: UPDATE admin.subc SET admin.subc.deal_key = "NVD" WHERE admin.subc.CHAS_KEY in (select chas from dblog1.eire) Otherwise, you will need to specify (hard-code) what value (or values) you expect dblog1.eire.CHAS_KEY to be in the WHERE clause. Cheers. Cams Kirk Davis wrote: > Hi All, > > Hope someone out there can help me with this one, it's driving me mad! > > Does anyone have any idea, why the statement below would not work, I just > get the error " 522: Table (dblog1.eire) not selected in query." > > I've tried also making the first line > UPDATE admin.subc, dblog1.eire but > > but still no luck, I've read through the Informix SQL guide, but It doesn't > give me an clues?? > > UPDATE admin.subc > SET admin.subc.deal_key = "NVD" > WHERE dblog1.eire.chas = admin.subc.CHAS_KEY; > > Any help greatly appreciated! > > Best Regards to all, > Kirk -- Everything has it's wonders, even darkness and silence. and I learn, whatever state I may be in, therein to be content. -- Helen Keller --------------454467EE8C9FEC5B3110BB5A Content-Type: text/x-vcard; charset=us-ascii; name="cmoore.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Camille Moore Content-Disposition: attachment; filename="cmoore.vcf" begin:vcard n:Moore;Camille tel;work:(876) 927-1125 Ext. 379 x-mozilla-html:TRUE url:www.fsl.org.jm org:Fiscal Services Ltd.;Technical Support version:2.1 email;internet:cmoore@fsl.org.jm title:Database Administrator adr;quoted-printable:;;235B Old Hope Rd.,=0D=0AKingston 6;;;;Jamaica fn:Camille Moore end:vcard --------------454467EE8C9FEC5B3110BB5A--