Thursday, March 14, 2013

update query

update a set a.name = (select new from b where a.name = b.new
 and b.name = 'a')
where exists
 (select new from b where a.name = b.new and b.name = 'a')

No comments:

Post a Comment