dbTalk Databases Forums  

Update across 2 databases

comp.databases.btrieve comp.databases.btrieve


Discuss Update across 2 databases in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Darren Woodbrey
 
Posts: n/a

Default Update across 2 databases - 01-12-2006 , 09:44 AM






I am trying to run this staement from pervasive control center on
Pervasive.SQL 2000i:

UPDATE HPFYE.RM00103
SET HPFYE.RM00103.TTLSLLYR = HPFSAMPLE.RM00103.TTLSLYTD
WHERE HPFYE.RM00103.CUSTNMBR = HPFSAMPLE.RM00103.CUSTNMBR


I am getting the following error:

ODBC Error: SQLSTATE = 37000, Native error code = 0
Syntax Error: UPDATE HPFYE.RM00103

SET HPFYE.RM00103.<< ??? >>TTLSLLYR = HPFSAMPLE.RM00103.TTLSLYTD

WHERE HPFYE.RM00103.CUSTNMBR = HPFSAMPLE.RM00103.CUSTNMBR

Can someone help? Thanks!



Reply With Quote
  #2  
Old   
Bill Bach
 
Posts: n/a

Default Re: Update across 2 databases - 01-18-2006 , 11:02 PM






While this syntax is definitely valid for PSQLv9, I'm not sure if this
is valid syntax for the PSQL2000 engine or not.
BB

Darren Woodbrey wrote:

Quote:
I am trying to run this staement from pervasive control center on
Pervasive.SQL 2000i:

UPDATE HPFYE.RM00103
SET HPFYE.RM00103.TTLSLLYR = HPFSAMPLE.RM00103.TTLSLYTD
WHERE HPFYE.RM00103.CUSTNMBR = HPFSAMPLE.RM00103.CUSTNMBR


I am getting the following error:

ODBC Error: SQLSTATE = 37000, Native error code = 0
Syntax Error: UPDATE HPFYE.RM00103

SET HPFYE.RM00103.<< ??? >>TTLSLLYR = HPFSAMPLE.RM00103.TTLSLYTD

WHERE HPFYE.RM00103.CUSTNMBR = HPFSAMPLE.RM00103.CUSTNMBR

Can someone help? Thanks!


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.