sammybee77
Technical User
Hi All,
Attached is the query I'm trying to do, obviously it doesn't work as I'm trying to set the value of one table whilst referencing another. Any ideas of the best way to do this?
update table1, table2 set tab1id = tab2id, tab1field1 = 8888, tab1field3 = 0
where tab2name like 'TEST%';
The other problem I have is that tab1id may already be populated with tab2id or it may be null. In theory I think I need both insert and update - any ideas?
Many thanks
Sam
Attached is the query I'm trying to do, obviously it doesn't work as I'm trying to set the value of one table whilst referencing another. Any ideas of the best way to do this?
update table1, table2 set tab1id = tab2id, tab1field1 = 8888, tab1field3 = 0
where tab2name like 'TEST%';
The other problem I have is that tab1id may already be populated with tab2id or it may be null. In theory I think I need both insert and update - any ideas?
Many thanks
Sam