SyntaxFix
Write A Post
Hire A Developer
Questions
Using description instead of desc for table2,
update table1 set value = (select code from table2 where description = table1.value) where exists (select 1 from table2 where description = table1.value) and table1.updatetype = 'blah' ;