update s set s.thisField = d.thatField, s.anotherField = d.andAnotherField from Table1 s, Table2 d where s.id = d.table1Id
Thursday, 23 December 2010
Updating fields in one table with fields in another
Subscribe to:
Posts (Atom)
C#, .Net, MVC, jQuery, JavaScript, HTML, CSS, Umbraco, Phonegap / Cordova, Xamarin, iPhone, iOS, Swift, Android, Windows, apps, websites, Full Stack, ecommerce, Facebook, responsive, front-end. Freelance developer, programmer for web and mobile in Bristol, UK.
update s set s.thisField = d.thatField, s.anotherField = d.andAnotherField from Table1 s, Table2 d where s.id = d.table1Id