select 'update [dbo].[BuilderTableColumn] set Width=''120'' where TableName=''LoopPlan'' and Comment=''' + Comment+ '''' from [dbo].[BuilderTableColumn] where TableName='LoopPlan' and IsList = 1 order by Sort