0
SELECT
name as [dbname]
FROM
sys.databases
-- for each [dbname]
--update @[dbname] [dbo].[tb_Setting] -- this is the loop I need help with
SET
currentvalue = 'Powered by WaqarAttari'
WHERE
Title = 'MyFooter' and currentvalue = 'Powered by WaqarAttari'
我想帮助在本节循环在SQL查询的SQL Server 2008
-- for each [dbname]
--update @[dbname] [dbo].[tb_Setting] -- this is the loop I need help with