If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > update data in one column with a value from another table.column

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-30-10, 07:41
vincentsillifant vincentsillifant is offline
Registered User
 
Join Date: Jun 2010
Posts: 1
Post update data in one column with a value from another table.column

Hi,

I'm trying to update data on a table with data from another table. I'm using a script that I've used on a SQL DB, but I cannot get it to work on a informix DB. I get a syntax error:

UPDATE table1
SET t1.DATE = t2.date
FROM table1 AS t1
JOIN table2 AS t2
ON t1.ID = t2.ID

table1 may have the same ID more that once, and all IDs need to be populated with the same date value as found in table2 for the same ID.

Any help anyone can provide will be greatly appreciated.

Thanks in advance.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On