Let's say I have some update script:
update sometable set somecolumn = 'somevalue' where xyz = 0
If you wanted all databases, you can use
EXEC sp_MSforeachdb @command1="UPDATE ?..sometable SET somecolumn='somevalue' WHERE xyz=0"
Or for specific databases, you could try some of the logic as seen here:
Hope that helps.